aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog4
-rw-r--r--mail/mail-callbacks.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 7e2c21aa94..b46a9a8f01 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,7 @@
+2002-07-17 Radek Doulik <rodo@ximian.com>
+
+ * mail-callbacks.c (save_draft_done): use "saved" gtkhtml command
+
2002-07-17 Jeffrey Stedfast <fejj@ximian.com>
* component-factory.c (add_storage): Oops, Don't comment out the
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c
index dd7e5ecfa5..dfd071863b 100644
--- a/mail/mail-callbacks.c
+++ b/mail/mail-callbacks.c
@@ -529,11 +529,15 @@ static void
save_draft_done (CamelFolder *folder, CamelMimeMessage *msg, CamelMessageInfo *info, int ok,
const char *appended_uid, void *data)
{
+ CORBA_Environment ev;
struct _save_draft_info *sdi = data;
char *old_uid;
if (!ok)
goto done;
+ CORBA_exception_init (&ev);
+ GNOME_GtkHTML_Editor_Engine_runCommand (sdi->composer->editor_engine, "saved", &ev);
+ CORBA_exception_free (&ev);
old_uid = gtk_object_get_data (GTK_OBJECT (sdi->composer), "draft_uid");
if (old_uid) {