don't pass NULL to bonobo_widget_set_property.

2003-01-09  Chris Toshok  <toshok@ximian.com>

	* e-msg-composer-hdrs.c (e_msg_composer_hdrs_set_to): don't pass
	NULL to bonobo_widget_set_property.
	(e_msg_composer_hdrs_set_cc): same.
	(e_msg_composer_hdrs_set_bcc): same.

svn path=/trunk/; revision=19383
This commit is contained in:
Chris Toshok
2003-01-10 01:05:48 +00:00
committed by Chris Toshok
parent 11cc8e069f
commit eb4f1afd89
2 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,10 @@
2003-01-09 Chris Toshok <toshok@ximian.com>
* e-msg-composer-hdrs.c (e_msg_composer_hdrs_set_to): don't pass
NULL to bonobo_widget_set_property.
(e_msg_composer_hdrs_set_cc): same.
(e_msg_composer_hdrs_set_bcc): same.
2003-01-09 Chris Toshok <toshok@ximian.com>
* e-msg-composer-hdrs.c (e_msg_composer_hdrs_new): need to

View File

@ -947,7 +947,7 @@ e_msg_composer_hdrs_set_to (EMsgComposerHdrs *hdrs,
g_return_if_fail (E_IS_MSG_COMPOSER_HDRS (hdrs));
str = e_destination_exportv (to_destv);
bonobo_widget_set_property (BONOBO_WIDGET (hdrs->priv->to.entry), "destinations", TC_CORBA_string, str, NULL);
bonobo_widget_set_property (BONOBO_WIDGET (hdrs->priv->to.entry), "destinations", TC_CORBA_string, str ? str : "", NULL);
g_free (str);
}
@ -960,7 +960,7 @@ e_msg_composer_hdrs_set_cc (EMsgComposerHdrs *hdrs,
g_return_if_fail (E_IS_MSG_COMPOSER_HDRS (hdrs));
str = e_destination_exportv (cc_destv);
bonobo_widget_set_property (BONOBO_WIDGET (hdrs->priv->cc.entry), "destinations", TC_CORBA_string, str, NULL);
bonobo_widget_set_property (BONOBO_WIDGET (hdrs->priv->cc.entry), "destinations", TC_CORBA_string, str ? str :"", NULL);
if (str && *str)
set_pair_visibility (hdrs, &hdrs->priv->cc, TRUE);
g_free (str);
@ -975,7 +975,7 @@ e_msg_composer_hdrs_set_bcc (EMsgComposerHdrs *hdrs,
g_return_if_fail (E_IS_MSG_COMPOSER_HDRS (hdrs));
str = e_destination_exportv (bcc_destv);
bonobo_widget_set_property (BONOBO_WIDGET (hdrs->priv->bcc.entry), "destinations", TC_CORBA_string, str, NULL);
bonobo_widget_set_property (BONOBO_WIDGET (hdrs->priv->bcc.entry), "destinations", TC_CORBA_string, str ? str : "", NULL);
if (str && *str)
set_pair_visibility (hdrs, &hdrs->priv->bcc, TRUE);
g_free (str);