aboutsummaryrefslogtreecommitdiffstats
path: root/composer
diff options
context:
space:
mode:
Diffstat (limited to 'composer')
-rw-r--r--composer/ChangeLog5
-rw-r--r--composer/e-msg-composer.c14
2 files changed, 17 insertions, 2 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog
index 7eb4b14dd7..25a11d6f62 100644
--- a/composer/ChangeLog
+++ b/composer/ChangeLog
@@ -1,3 +1,8 @@
+2001-07-04 Larry Ewing <lewing@ximian.com>
+
+ * e-msg-composer.c (autosave_load_draft): attach send and postpone
+ handlers. and be more tolerant of errors.
+
2001-07-03 Larry Ewing <lewing@ximian.com>
* e-msg-composer.c (autosave_save_draft): make sure we seek to the
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index 160e45127c..3fb82db821 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -1063,9 +1063,18 @@ autosave_load_draft (const char *filename)
unlink (filename);
composer = e_msg_composer_new_with_message (msg);
+ if (composer) {
+ autosave_save_draft (composer);
+
+ gtk_signal_connect (GTK_OBJECT (composer), "send",
+ GTK_SIGNAL_FUNC (composer_send_cb), NULL);
+ gtk_signal_connect (GTK_OBJECT (composer), "postpone",
+ GTK_SIGNAL_FUNC (composer_postpone_cb), NULL);
+
+ gtk_widget_show (GTK_WIDGET (composer));
+ }
camel_object_unref ((CamelObject *)stream);
- gtk_widget_show (GTK_WIDGET (composer));
return composer;
}
@@ -1114,8 +1123,9 @@ autosave_query_load_orphans (AutosaveManager *am, EMsgComposer *composer)
if (ok) {
char *filename = g_strdup_printf ("%s/%s", g_get_home_dir (), d->d_name);
+ EMsgComposer *composer;
- autosave_load_draft (filename);
+ composer = autosave_load_draft (filename);
g_free (filename);
}