diff options
author | Radek Doulik <rodo@ximian.com> | 2002-07-18 02:14:49 +0800 |
---|---|---|
committer | Radek Doulik <rodo@src.gnome.org> | 2002-07-18 02:14:49 +0800 |
commit | 690538a5bc9cb25f46284b5fa61f092e08d9d480 (patch) | |
tree | bc5f3f553703f11289141065e61920c09d4a438b | |
parent | 29ccc49c5d11dd09bcac3099747b0e42ad8c100a (diff) | |
download | gsoc2013-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
-rw-r--r-- | composer/ChangeLog | 5 | ||||
-rw-r--r-- | composer/e-msg-composer.c | 9 |
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; |