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.c9
2 files changed, 11 insertions, 3 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog
index f67d32d454..9e681d2f71 100644
--- a/composer/ChangeLog
+++ b/composer/ChangeLog
@@ -1,3 +1,8 @@
+2002-07-17 Radek Doulik <rodo@ximian.com>
+
+ * e-msg-composer.c (save): use "saved" gtkhtml command
+ (e_msg_composer_is_dirty): use "is-saved" gtkhtml command
+
2002-07-16 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer.c (e_msg_composer_set_headers): Set the
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index d63b1a1f08..af34c1ee57 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -1059,8 +1059,9 @@ save (EMsgComposer *composer,
if (ev._major != CORBA_NO_EXCEPTION) {
e_notice (GTK_WINDOW (composer), GNOME_MESSAGE_BOX_ERROR,
_("Error saving file: %s"), g_basename (my_file_name));
- }
-
+ } else
+ GNOME_GtkHTML_Editor_Engine_runCommand (composer->editor_engine, "saved", &ev);
+
CORBA_exception_free (&ev);
g_free (my_file_name);
@@ -4435,7 +4436,9 @@ e_msg_composer_is_dirty (EMsgComposer *composer)
gboolean rv;
CORBA_exception_init (&ev);
- rv = composer->has_changed || GNOME_GtkHTML_Editor_Engine_hasUndo (composer->editor_engine, &ev);
+ rv = composer->has_changed
+ || (GNOME_GtkHTML_Editor_Engine_hasUndo (composer->editor_engine, &ev) &&
+ !GNOME_GtkHTML_Editor_Engine_runCommand (composer->editor_engine, "is-saved", &ev));
CORBA_exception_free (&ev);
return rv;