diff options
author | Jeffrey Stedfast <fejj@helixcode.com> | 2001-01-11 13:47:56 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-01-11 13:47:56 +0800 |
commit | 05bccea610d0a7f562e3fce288ad8ee04ac70995 (patch) | |
tree | afb0e9fbc1d7755b0f6dc6a810c29482f810897c /composer | |
parent | ecd28b568a5a1ec2e42555cba1a3999e0f936011 (diff) | |
download | gsoc2013-evolution-05bccea610d0a7f562e3fce288ad8ee04ac70995.tar gsoc2013-evolution-05bccea610d0a7f562e3fce288ad8ee04ac70995.tar.gz gsoc2013-evolution-05bccea610d0a7f562e3fce288ad8ee04ac70995.tar.bz2 gsoc2013-evolution-05bccea610d0a7f562e3fce288ad8ee04ac70995.tar.lz gsoc2013-evolution-05bccea610d0a7f562e3fce288ad8ee04ac70995.tar.xz gsoc2013-evolution-05bccea610d0a7f562e3fce288ad8ee04ac70995.tar.zst gsoc2013-evolution-05bccea610d0a7f562e3fce288ad8ee04ac70995.zip |
New callback to save draft. Fixes bug #1045.
2001-01-11 Jeffrey Stedfast <fejj@helixcode.com>
* e-msg-composer.c (menu_file_save_draft_cb): New callback to save
draft. Fixes bug #1045.
svn path=/trunk/; revision=7379
Diffstat (limited to 'composer')
-rw-r--r-- | composer/ChangeLog | 5 | ||||
-rw-r--r-- | composer/e-msg-composer.c | 14 |
2 files changed, 19 insertions, 0 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog index 3f6c68abf8..02e4efec96 100644 --- a/composer/ChangeLog +++ b/composer/ChangeLog @@ -1,3 +1,8 @@ +2001-01-11 Jeffrey Stedfast <fejj@helixcode.com> + + * e-msg-composer.c (menu_file_save_draft_cb): New callback to save + draft. Fixes bug #1045. + 2001-01-10 Miguel de Icaza <miguel@helixcode.com> * e-msg-composer.c: Removed more UNSAFE stuff. Maybe we should diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index b3b5ab8d04..0527375e52 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -712,6 +712,19 @@ static const mail_operation_spec op_save_draft = { }; static void +menu_file_save_draft_cb (BonoboUIComponent *uic, void *data, const char *path) +{ + EMsgComposer *composer; + save_draft_input_t *input; + + composer = E_MSG_COMPOSER (data); + + input = g_new0 (save_draft_input_t, 1); + input->composer = composer; + mail_operation_queue (&op_save_draft, input, TRUE); +} + +static void exit_dialog_cb (int reply, EMsgComposer *composer) { save_draft_input_t *input; @@ -1071,6 +1084,7 @@ static BonoboUIVerb verbs [] = { BONOBO_UI_VERB ("FileOpen", menu_file_open_cb), BONOBO_UI_VERB ("FileSave", menu_file_save_cb), BONOBO_UI_VERB ("FileSaveAs", menu_file_save_as_cb), + BONOBO_UI_VERB ("FileSaveDraft", menu_file_save_draft_cb), BONOBO_UI_VERB ("FileClose", menu_file_close_cb), BONOBO_UI_VERB ("FileInsertFile", menu_file_insert_file_cb), |