aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2001-01-11 13:47:56 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-01-11 13:47:56 +0800
commit05bccea610d0a7f562e3fce288ad8ee04ac70995 (patch)
treeafb0e9fbc1d7755b0f6dc6a810c29482f810897c /composer/e-msg-composer.c
parentecd28b568a5a1ec2e42555cba1a3999e0f936011 (diff)
downloadgsoc2013-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/e-msg-composer.c')
-rw-r--r--composer/e-msg-composer.c14
1 files changed, 14 insertions, 0 deletions
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),