diff options
author | Peter Williams <peterw@ximian.com> | 2002-07-17 04:05:02 +0800 |
---|---|---|
committer | Peter Williams <peterw@src.gnome.org> | 2002-07-17 04:05:02 +0800 |
commit | bc20187dc0782187ccedec5edd9c744ce652a803 (patch) | |
tree | 359099d7e88c1fa77568cfa181fdb9eb858ddd5d /composer/e-msg-composer.c | |
parent | 9f421a0b1cbed4440e623adf47ecf8a5c7aeaf0c (diff) | |
download | gsoc2013-evolution-bc20187dc0782187ccedec5edd9c744ce652a803.tar gsoc2013-evolution-bc20187dc0782187ccedec5edd9c744ce652a803.tar.gz gsoc2013-evolution-bc20187dc0782187ccedec5edd9c744ce652a803.tar.bz2 gsoc2013-evolution-bc20187dc0782187ccedec5edd9c744ce652a803.tar.lz gsoc2013-evolution-bc20187dc0782187ccedec5edd9c744ce652a803.tar.xz 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.c')
-rw-r--r-- | composer/e-msg-composer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index 769d8afbbd..f0ec802c7e 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -2695,9 +2695,9 @@ create_composer (void) all_composers = g_slist_prepend (all_composers, composer); - gtk_object_weakref (GTK_OBJECT (composer), - msg_composer_destroy_notify, - composer); + gtk_signal_connect (GTK_OBJECT (composer), "destroy", + GTK_SIGNAL_FUNC (msg_composer_destroy_notify), + NULL); gtk_window_set_default_size (GTK_WINDOW (composer), DEFAULT_WIDTH, DEFAULT_HEIGHT); |