aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer-hdrs.c
diff options
context:
space:
mode:
authorPeter Williams <peterw@ximian.com>2002-07-17 04:05:02 +0800
committerPeter Williams <peterw@src.gnome.org>2002-07-17 04:05:02 +0800
commitbc20187dc0782187ccedec5edd9c744ce652a803 (patch)
tree359099d7e88c1fa77568cfa181fdb9eb858ddd5d /composer/e-msg-composer-hdrs.c
parent9f421a0b1cbed4440e623adf47ecf8a5c7aeaf0c (diff)
downloadgsoc2013-evolution-bc20187dc0782187ccedec5edd9c744ce652a803.tar.gz
gsoc2013-evolution-bc20187dc0782187ccedec5edd9c744ce652a803.tar.zst
gsoc2013-evolution-bc20187dc0782187ccedec5edd9c744ce652a803.zip
Instead of doing this with a weakref, do it by connecting to the destroy
2002-07-16 Peter Williams <peterw@ximian.com> * e-msg-composer.c (create_composer): Instead of doing this with a weakref, do it by connecting to the destroy signal. The weakref was not getting notified in certain conditions that I could never really pin down, and this caused problems at exit. * e-msg-composer-hdrs.c (create_headers): Reorder to create reply_to before from, because create_from_optionmenu causes from_changed to be called, which expects reply_to.entry to exist. svn path=/trunk/; revision=17480
Diffstat (limited to 'composer/e-msg-composer-hdrs.c')
-rw-r--r--composer/e-msg-composer-hdrs.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/composer/e-msg-composer-hdrs.c b/composer/e-msg-composer-hdrs.c
index a39fd806c6..d98b452cff 100644
--- a/composer/e-msg-composer-hdrs.c
+++ b/composer/e-msg-composer-hdrs.c
@@ -365,13 +365,11 @@ create_headers (EMsgComposerHdrs *hdrs)
EMsgComposerHdrsPrivate *priv = hdrs->priv;
/*
- * From:
- */
- priv->from.label = gtk_label_new (_("From:"));
- priv->from.entry = create_from_optionmenu (hdrs);
-
- /*
* Reply-To:
+ *
+ * Create this before we call create_from_optionmenu,
+ * because that causes from_changed to be called, which
+ * expects the reply_to fields to be initialized.
*/
priv->reply_to.label = gtk_label_new (_("Reply-To:"));
priv->reply_to.entry = e_entry_new ();
@@ -382,6 +380,12 @@ create_headers (EMsgComposerHdrs *hdrs)
NULL);
/*
+ * From:
+ */
+ priv->from.label = gtk_label_new (_("From:"));
+ priv->from.entry = create_from_optionmenu (hdrs);
+
+ /*
* Subject:
*/
priv->subject.label = gtk_label_new (_("Subject:"));