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);
}
Update to 1.3.35erwin2006-06-062-4/+4 * - Update to 1.3.34pav2006-06-052-6/+5 * Update to 1.3.31ehaupt2006-03-202-4/+4 * Update to 1.3.30ehaupt2006-03-153-4/+5 * - Update to to 1.3.29ehaupt2006-03-034-23/+67 * BROKEN: Unfetchablekris2006-02-261-0/+2 * Update to 1.3.25.lawrance2006-02-112-4/+4 * SHA256ifyedwin2006-01-301-1/+2 * - Update to 1.3.16pav2005-09-184-5/+6 * - Patch out hard reference to -lc_r from configure scriptpav2005-09-081-3/+12 * - Update to 1.3.12pav2005-08-314-21/+10 * Upgrade to 1.3.9lesi2005-07-254-29/+29 * This port is scheduled for deletion on 2005-09-22 if it is still brokenkris2005-07-231-0/+2 * BROKEN: incomplete pkg-plistkris2005-07-181-0/+2 * Update to 1.3.5pat2005-06-124-28/+27 * - Update to 1.2.66pav2004-12-292-3/+7 * - Fix SIZE entry in distinfopav2004-11-221-1/+1 * - Update to 1.2.58pav2004-11-217-9/+165 * - Update to 1.2.48sergei2004-05-242-3/+3 * - update to 1.2.44petef2004-05-023-38/+38 * - Update to 1.2.39pav2004-04-043-17/+8 * SIZEify (maintainer timeout)trevor2004-03-311-0/+1 * Fix typo: include a space after "@comment" in PLIST_SUB.petef2004-02-291-1/+1 * FORBIDDEN on 5.x: links against conflicting thread librarieskris2004-02-191-1/+7 * - Fix package buildkrion2004-02-162-2/+10 * - Update to version 1.2.28krion2004-01-243-4/+5 * Portlintobrien2004-01-011-11/+8 * Updated Port: mail/dcc-dccdedwin2003-09-083-32/+38 * remove pkg-comment, add COMMENT.edwin2003-04-152-1/+1