From eb4f1afd8937c3ce5e255e4de3bad018d9e2eff7 Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Fri, 10 Jan 2003 01:05:48 +0000 Subject: don't pass NULL to bonobo_widget_set_property. 2003-01-09 Chris Toshok * 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 --- composer/ChangeLog | 7 +++++++ composer/e-msg-composer-hdrs.c | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/composer/ChangeLog b/composer/ChangeLog index 8b9e337e66..4dee7c0e54 100644 --- a/composer/ChangeLog +++ b/composer/ChangeLog @@ -1,3 +1,10 @@ +2003-01-09 Chris Toshok + + * 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 * e-msg-composer-hdrs.c (e_msg_composer_hdrs_new): need to diff --git a/composer/e-msg-composer-hdrs.c b/composer/e-msg-composer-hdrs.c index 172718157b..ddb392e11d 100644 --- a/composer/e-msg-composer-hdrs.c +++ b/composer/e-msg-composer-hdrs.c @@ -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); -- cgit v1.2.3