aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLarry Ewing <lewing@ximian.com>2001-07-04 15:42:32 +0800
committerLarry Ewing <lewing@src.gnome.org>2001-07-04 15:42:32 +0800
commit0e9fadc31dfa68a097fafb63ee01de40e32df51b (patch)
tree1b289ae340b5a08a3ee695176a6c0e8ee4cea3fa
parent720a792d11bbcadfd8bddfa8d68a0fbe0eb817d0 (diff)
downloadgsoc2013-evolution-0e9fadc31dfa68a097fafb63ee01de40e32df51b.tar.gz
gsoc2013-evolution-0e9fadc31dfa68a097fafb63ee01de40e32df51b.tar.zst
gsoc2013-evolution-0e9fadc31dfa68a097fafb63ee01de40e32df51b.zip
attach send and postpone handlers. and be more tolerant of errors.
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. svn path=/trunk/; revision=10778
-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);
}