diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-06-02 23:07:43 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-06-03 04:14:56 +0800 |
commit | 475ea467c199cf08411611efc00848ca9354f702 (patch) | |
tree | 46f0214458362f1adcde00221c1daf6d949d0069 | |
parent | 2d3fbbaa9205a6ed6f65650bb99e91d9aac00908 (diff) | |
download | gsoc2013-evolution-475ea467c199cf08411611efc00848ca9354f702.tar gsoc2013-evolution-475ea467c199cf08411611efc00848ca9354f702.tar.gz gsoc2013-evolution-475ea467c199cf08411611efc00848ca9354f702.tar.bz2 gsoc2013-evolution-475ea467c199cf08411611efc00848ca9354f702.tar.lz gsoc2013-evolution-475ea467c199cf08411611efc00848ca9354f702.tar.xz gsoc2013-evolution-475ea467c199cf08411611efc00848ca9354f702.tar.zst gsoc2013-evolution-475ea467c199cf08411611efc00848ca9354f702.zip |
em_utils_redirect_message: Return the EMsgComposer.
(cherry picked from commit ca14cc115ee90650f1546ed3d95bf1ce6010569f)
-rw-r--r-- | mail/em-composer-utils.c | 10 | ||||
-rw-r--r-- | mail/em-composer-utils.h | 2 |
2 files changed, 8 insertions, 4 deletions
diff --git a/mail/em-composer-utils.c b/mail/em-composer-utils.c index b941e06d1b..2ba3a14d41 100644 --- a/mail/em-composer-utils.c +++ b/mail/em-composer-utils.c @@ -2181,21 +2181,25 @@ redirect_get_composer (EShell *shell, * * Opens a composer to redirect @message (Note: only headers will be * editable). Adds Resent-From/Resent-To/etc headers. + * + * Returns: the resulting #EMsgComposer **/ -void +EMsgComposer * em_utils_redirect_message (EShell *shell, CamelMimeMessage *message) { EMsgComposer *composer; - g_return_if_fail (E_IS_SHELL (shell)); - g_return_if_fail (CAMEL_IS_MIME_MESSAGE (message)); + g_return_val_if_fail (E_IS_SHELL (shell), NULL); + g_return_val_if_fail (CAMEL_IS_MIME_MESSAGE (message), NULL); composer = redirect_get_composer (shell, message); gtk_widget_show (GTK_WIDGET (composer)); composer_set_no_change (composer); + + return composer; } /* Replying to messages... */ diff --git a/mail/em-composer-utils.h b/mail/em-composer-utils.h index 719bc5b6bd..0fb46d4664 100644 --- a/mail/em-composer-utils.h +++ b/mail/em-composer-utils.h @@ -56,7 +56,7 @@ void em_utils_forward_messages (EMailReader *reader, GPtrArray *uids, EMailForwardStyle style, GtkWidget *destroy_when_done); -void em_utils_redirect_message (EShell *shell, +EMsgComposer * em_utils_redirect_message (EShell *shell, CamelMimeMessage *message); gchar * em_utils_construct_composer_text (CamelSession *session, |