diff options
author | Radek Doulik <rodo@ximian.com> | 2003-12-01 23:20:49 +0800 |
---|---|---|
committer | Radek Doulik <rodo@src.gnome.org> | 2003-12-01 23:20:49 +0800 |
commit | 2c1e306b97ef82b8576b542884702cb4487c6182 (patch) | |
tree | 7dff79c42c52c89892fc12e7045c9ab1f3429ec3 /composer/e-msg-composer.h | |
parent | d595778e6f897b1b47998c0c3862392358a0ee9c (diff) | |
download | gsoc2013-evolution-2c1e306b97ef82b8576b542884702cb4487c6182.tar.gz gsoc2013-evolution-2c1e306b97ef82b8576b542884702cb4487c6182.tar.zst gsoc2013-evolution-2c1e306b97ef82b8576b542884702cb4487c6182.zip |
autosave fix
2003-11-11 Radek Doulik <rodo@ximian.com>
* e-msg-composer.c (e_msg_composer_set_autosaved): new method to
wrap autosaved flag setting
(e_msg_composer_unset_autosaved): ditto
(e_msg_composer_is_autosaved): new method, says if composer was
autosaved only
(autosave_save_draft): unset changed so that we don't autosave all
the time when anything else than gtkhtml control changed
2003-11-06 Radek Doulik <rodo@ximian.com>
* e-msg-composer.c (autosave_save_draft): call gtkhtml's saved
command to clean is-saved flag, set composer's autosaved flag
(do_exit): complain if last save was just autosave
(e_msg_composer_unset_changed): reset autosaved flag
(save): reset autosaved flag
* e-msg-composer.h: added autosaved flag, it tells whether last
save was autosave or regular save, when changed flag is reset the
autosaved one is reset too
svn path=/trunk/; revision=23526
Diffstat (limited to 'composer/e-msg-composer.h')
-rw-r--r-- | composer/e-msg-composer.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/composer/e-msg-composer.h b/composer/e-msg-composer.h index 734b4c8760..dcc308cac0 100644 --- a/composer/e-msg-composer.h +++ b/composer/e-msg-composer.h @@ -98,6 +98,7 @@ struct _EMsgComposer { guint32 view_cc : 1; guint32 view_subject : 1; guint32 has_changed : 1; + guint32 autosaved : 1; guint32 mode_post : 1; @@ -185,6 +186,9 @@ char *e_msg_composer_guess_mime_type (const void e_msg_composer_set_changed (EMsgComposer *composer); void e_msg_composer_unset_changed (EMsgComposer *composer); gboolean e_msg_composer_is_dirty (EMsgComposer *composer); +void e_msg_composer_set_autosaved (EMsgComposer *composer); +void e_msg_composer_unset_autosaved (EMsgComposer *composer); +gboolean e_msg_composer_is_autosaved (EMsgComposer *composer); void e_msg_composer_set_enable_autosave (EMsgComposer *composer, gboolean enabled); |