diff options
author | Milan Crha <mcrha@redhat.com> | 2010-07-09 03:28:02 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2010-07-09 03:28:02 +0800 |
commit | ae4e6007efece29bf587f3193e7c57ad7f7d81dc (patch) | |
tree | d96dd76515051a41a3b5b1350142e2332a6bc628 | |
parent | 137b0743ddfbd3bbc01c9813615ede91ddd9b954 (diff) | |
download | gsoc2013-evolution-ae4e6007efece29bf587f3193e7c57ad7f7d81dc.tar.gz gsoc2013-evolution-ae4e6007efece29bf587f3193e7c57ad7f7d81dc.tar.zst gsoc2013-evolution-ae4e6007efece29bf587f3193e7c57ad7f7d81dc.zip |
Bug #623796 - Post Message to List asks for confirmation on close
-rw-r--r-- | mail/em-composer-utils.c | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/mail/em-composer-utils.c b/mail/em-composer-utils.c index 9cc0001de9..ab8b62166b 100644 --- a/mail/em-composer-utils.c +++ b/mail/em-composer-utils.c @@ -552,7 +552,7 @@ struct _save_draft_info { }; static void -composer_set_no_change (EMsgComposer *composer, gboolean drop_undo, gboolean editor_changed) +composer_set_no_change (EMsgComposer *composer) { GtkhtmlEditor *editor; @@ -560,11 +560,8 @@ composer_set_no_change (EMsgComposer *composer, gboolean drop_undo, gboolean edi editor = GTKHTML_EDITOR (composer); - if (drop_undo) - gtkhtml_editor_drop_undo (editor); - - if (editor_changed) - gtkhtml_editor_set_changed (editor, FALSE); + gtkhtml_editor_drop_undo (editor); + gtkhtml_editor_set_changed (editor, FALSE); } static void @@ -751,7 +748,7 @@ em_utils_compose_new_message (const gchar *fromuri) if (composer == NULL) return; - composer_set_no_change (E_MSG_COMPOSER (composer), TRUE, TRUE); + composer_set_no_change (E_MSG_COMPOSER (composer)); gtk_widget_show (composer); } @@ -782,7 +779,7 @@ em_utils_compose_new_message_with_mailto (const gchar *url, const gchar *fromuri && (account = mail_config_get_account_by_source_url(fromuri))) e_composer_header_table_set_account_name (table, account->name); - composer_set_no_change (composer, TRUE, url == NULL); + composer_set_no_change (composer); gtk_window_present (GTK_WINDOW (composer)); @@ -961,7 +958,7 @@ edit_message (CamelMimeMessage *message, CamelFolder *drafts, const gchar *uid) emcs_set_drafts_info (emcs, drafts, uid); } - composer_set_no_change (composer, TRUE, TRUE); + composer_set_no_change (composer); gtk_widget_show (GTK_WIDGET (composer)); @@ -1121,7 +1118,7 @@ forward_attached (CamelFolder *folder, GPtrArray *uids, GPtrArray *messages, Cam if (uids) setup_forward_attached_callbacks (composer, folder, uids); - composer_set_no_change (composer, TRUE, TRUE); + composer_set_no_change (composer); gtk_widget_show (GTK_WIDGET (composer)); @@ -1209,7 +1206,7 @@ forward_non_attached (CamelFolder *folder, GPtrArray *uids, GPtrArray *messages, } emu_update_composers_security (composer, validity_found); - composer_set_no_change (composer, TRUE, TRUE); + composer_set_no_change (composer); gtk_widget_show (GTK_WIDGET (composer)); } g_free (text); @@ -1387,7 +1384,7 @@ em_utils_redirect_message (CamelMimeMessage *message) gtk_widget_show (GTK_WIDGET (composer)); - composer_set_no_change (composer, TRUE, TRUE); + composer_set_no_change (composer); } static void @@ -2257,7 +2254,7 @@ em_utils_reply_to_message(CamelFolder *folder, const gchar *uid, CamelMimeMessag emcs = g_object_get_data (G_OBJECT (composer), "emcs"); emcs_set_folder_info (emcs, folder, uid, flags, flags); - composer_set_no_change (composer, TRUE, TRUE); + composer_set_no_change (composer); gtk_widget_show (GTK_WIDGET (composer)); |