aboutsummaryrefslogtreecommitdiffstats
path: root/composer
diff options
context:
space:
mode:
Diffstat (limited to 'composer')
-rw-r--r--composer/ChangeLog5
-rw-r--r--composer/e-msg-composer.c14
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),