From 534e5a1764bdbeb542cf3531c2575df451d8e572 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Wed, 9 Apr 2008 02:00:45 +0000 Subject: ** Fixes bug #523413 2008-04-08 Matthew Barnes ** Fixes bug #523413 * composer/e-msg-composer.c (msg_composer_dispose): Use the 'application_exiting' private flag to determine whether to tell e_composer_autosave_unregister() to delete the autosave file. * composer/e-msg-composer.c (msg_composer_class_init), (e_msg_composer_save_draft): Remove the 'quit' parameter from the 'save-draft' signal. * composer/e-msg-composer.c (e_msg_composer_request_close_all): Take an autosave snapshot before activating the CLOSE action, and set the private 'application_exiting' flag. This should avoid prompting the user before shutting down. * composer/e-composer-actions.c (action_close_cb): When electing to save a message before closing, hide the window immediately. The callback function can then check the window's visibility after the save is complete to know whether to destroy the window. * composer/e-composer-autosave.c (e_composer_autosave_unregister): Add a 'delete_file' boolean parameter to determine whether to delete the autosave file. * composer/e-composer-private.h: Add an 'application_exiting' flag. * mail/em-composer-utils.c (save_draft_done): Check the composer window's visibility to determine whether to destroy the window. See the corresponding composer/ChangeLog entry to get the full story. * mail/em-composer-utils.c (em_utils_composer_save_draft_cb): Remove the 'quit' parameter. svn path=/trunk/; revision=35346 --- composer/e-composer-private.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'composer/e-composer-private.h') diff --git a/composer/e-composer-private.h b/composer/e-composer-private.h index c9f9174394..5cea10af89 100644 --- a/composer/e-composer-private.h +++ b/composer/e-composer-private.h @@ -120,10 +120,9 @@ struct _EMsgComposerPrivate { guint32 attachment_bar_visible : 1; guint32 is_alternative : 1; guint32 autosaved : 1; - guint32 mode_post : 1; - guint32 in_signature_insert : 1; + guint32 application_exiting : 1; CamelMimeMessage *redirect; -- cgit v1.2.3