aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer.c
diff options
context:
space:
mode:
authorRadek Doulik <rodo@ximian.com>2002-07-18 02:14:49 +0800
committerRadek Doulik <rodo@src.gnome.org>2002-07-18 02:14:49 +0800
commit690538a5bc9cb25f46284b5fa61f092e08d9d480 (patch)
treebc5f3f553703f11289141065e61920c09d4a438b /composer/e-msg-composer.c
parent29ccc49c5d11dd09bcac3099747b0e42ad8c100a (diff)
downloadgsoc2013-evolution-690538a5bc9cb25f46284b5fa61f092e08d9d480.tar.gz
gsoc2013-evolution-690538a5bc9cb25f46284b5fa61f092e08d9d480.tar.zst
gsoc2013-evolution-690538a5bc9cb25f46284b5fa61f092e08d9d480.zip
use "saved" gtkhtml command (e_msg_composer_is_dirty): use "is-saved"
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 svn path=/trunk/; revision=17493
Diffstat (limited to 'composer/e-msg-composer.c')
-rw-r--r--composer/e-msg-composer.c9
1 files changed, 6 insertions, 3 deletions
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;