aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--composer/ChangeLog7
-rw-r--r--composer/e-msg-composer.c3
2 files changed, 8 insertions, 2 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog
index eb37427bb9..1c91f10546 100644
--- a/composer/ChangeLog
+++ b/composer/ChangeLog
@@ -1,3 +1,10 @@
+2001-07-06 Dan Winship <danw@ximian.com>
+
+ * e-msg-composer.c (do_exit): Call autosave_manager_unregister
+ before destroying the composer, so gtkhtml-editor-control doesn't
+ try to act on a destroyed GtkHTML widget.
+ (destroy): Remove the autosave_manager_unregister from here.
+
2001-07-06 Larry Ewing <lewing@ximian.com>
* e-msg-composer.c (autosave_manager_unregister): make sure we
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index e5d710ceaa..262119faa1 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -1311,6 +1311,7 @@ do_exit (EMsgComposer *composer)
exit_dialog_cb (button, composer);
} else {
+ autosave_manager_unregister (am, composer);
gtk_widget_destroy (GTK_WIDGET (composer));
}
}
@@ -1871,8 +1872,6 @@ destroy (GtkObject *object)
composer = E_MSG_COMPOSER (object);
- autosave_manager_unregister (am, composer);
-
CORBA_exception_init (&ev);
if (composer->config_db) {