aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2003-01-10 09:05:48 +0800
committerChris Toshok <toshok@src.gnome.org>2003-01-10 09:05:48 +0800
commiteb4f1afd8937c3ce5e255e4de3bad018d9e2eff7 (patch)
tree5a084a305074905a224e7bbce4a025281525dbd8
parent11cc8e069f3812b0b8f88d08d7b20d563807a39e (diff)
downloadgsoc2013-evolution-eb4f1afd8937c3ce5e255e4de3bad018d9e2eff7.tar.gz
gsoc2013-evolution-eb4f1afd8937c3ce5e255e4de3bad018d9e2eff7.tar.zst
gsoc2013-evolution-eb4f1afd8937c3ce5e255e4de3bad018d9e2eff7.zip
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
-rw-r--r--composer/ChangeLog7
-rw-r--r--composer/e-msg-composer-hdrs.c6
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,5 +1,12 @@
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
ref/sink "new" so that the g_object_unref doesn't spew a warning.
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);