diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-05-13 04:57:37 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-06-30 00:42:14 +0800 |
commit | f21da771776286769f390a6631a1a5fc2a675e76 (patch) | |
tree | ab4ceed6d4e8ee7bd106c87825aca5c63ef58d31 /modules/mail | |
parent | 61f2760572d458edb77934cbed815a7151ebbd58 (diff) | |
download | gsoc2013-evolution-f21da771776286769f390a6631a1a5fc2a675e76.tar gsoc2013-evolution-f21da771776286769f390a6631a1a5fc2a675e76.tar.gz gsoc2013-evolution-f21da771776286769f390a6631a1a5fc2a675e76.tar.bz2 gsoc2013-evolution-f21da771776286769f390a6631a1a5fc2a675e76.tar.lz gsoc2013-evolution-f21da771776286769f390a6631a1a5fc2a675e76.tar.xz gsoc2013-evolution-f21da771776286769f390a6631a1a5fc2a675e76.tar.zst gsoc2013-evolution-f21da771776286769f390a6631a1a5fc2a675e76.zip |
em_utils_reply_to_message(): Require a CamelMimeMessage.
No more fetching a message itself. Oh, and stop unreffing the message.
Those kinds of insane semantics are what lead to crashes.
Diffstat (limited to 'modules/mail')
-rw-r--r-- | modules/mail/e-mail-attachment-handler.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/modules/mail/e-mail-attachment-handler.c b/modules/mail/e-mail-attachment-handler.c index a11515bd3b..befac08d30 100644 --- a/modules/mail/e-mail-attachment-handler.c +++ b/modules/mail/e-mail-attachment-handler.c @@ -115,12 +115,9 @@ mail_attachment_handler_reply_all (GtkAction *action, shell_settings = e_shell_get_shell_settings (priv->shell); style = e_shell_settings_get_int (shell_settings, property_name); - /* em_utils_reply_to_message() unrefs 'message', thus ref it here */ - g_object_ref (wrapper); - em_utils_reply_to_message ( - priv->shell, NULL, NULL, CAMEL_MIME_MESSAGE (wrapper), - E_MAIL_REPLY_TO_ALL, style, NULL); + priv->shell, CAMEL_MIME_MESSAGE (wrapper), + NULL, NULL, E_MAIL_REPLY_TO_ALL, style, NULL); g_list_foreach (selected, (GFunc) g_object_unref, NULL); g_list_free (selected); @@ -154,12 +151,9 @@ mail_attachment_handler_reply_sender (GtkAction *action, shell_settings = e_shell_get_shell_settings (priv->shell); style = e_shell_settings_get_int (shell_settings, property_name); - /* em_utils_reply_to_message() unrefs 'message', thus ref it here */ - g_object_ref (wrapper); - em_utils_reply_to_message ( - priv->shell, NULL, NULL, CAMEL_MIME_MESSAGE (wrapper), - E_MAIL_REPLY_TO_SENDER, style, NULL); + priv->shell, CAMEL_MIME_MESSAGE (wrapper), + NULL, NULL, E_MAIL_REPLY_TO_SENDER, style, NULL); g_list_foreach (selected, (GFunc) g_object_unref, NULL); g_list_free (selected); |