aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer.c
diff options
context:
space:
mode:
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),