diff options
author | Radek Doulik <rodo@ximian.com> | 2004-07-28 00:52:33 +0800 |
---|---|---|
committer | Radek Doulik <rodo@src.gnome.org> | 2004-07-28 00:52:33 +0800 |
commit | fd83a09d5ced1b3a89dcf122e7ec47d5985de062 (patch) | |
tree | 6cdbd251a83c7140e6efb1f4177c4194751ec234 /mail/em-composer-utils.c | |
parent | 34b244a0410ce78413a41c60d460d65d715281c1 (diff) | |
download | gsoc2013-evolution-fd83a09d5ced1b3a89dcf122e7ec47d5985de062.tar.gz gsoc2013-evolution-fd83a09d5ced1b3a89dcf122e7ec47d5985de062.tar.zst gsoc2013-evolution-fd83a09d5ced1b3a89dcf122e7ec47d5985de062.zip |
added len parameter to em_utils_part_to_html and em_utils_message_to_html.
2004-07-23 Radek Doulik <rodo@ximian.com>
* added len parameter to em_utils_part_to_html and
em_utils_message_to_html. it is used to return length of returned
buffer. we use that info later when setting composer body content.
svn path=/trunk/; revision=26747
Diffstat (limited to 'mail/em-composer-utils.c')
-rw-r--r-- | mail/em-composer-utils.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/mail/em-composer-utils.c b/mail/em-composer-utils.c index daf4acfde3..e0991cc7fc 100644 --- a/mail/em-composer-utils.c +++ b/mail/em-composer-utils.c @@ -881,15 +881,17 @@ forward_non_attached (GPtrArray *messages, int style, const char *fromuri) flags |= EM_FORMAT_QUOTE_CITE; for (i = 0; i < messages->len; i++) { + ssize_t len; + message = messages->pdata[i]; subject = mail_tool_generate_forward_subject (message); - text = em_utils_message_to_html (message, _("-------- Forwarded Message --------"), flags); + text = em_utils_message_to_html (message, _("-------- Forwarded Message --------"), flags, &len); if (text) { composer = create_new_composer (subject, fromuri); - e_msg_composer_set_body_text (composer, text); + e_msg_composer_set_body_text (composer, text, len); e_msg_composer_unset_changed (composer); e_msg_composer_drop_editor_undo (composer); @@ -1663,6 +1665,7 @@ composer_set_body (EMsgComposer *composer, CamelMimeMessage *message) char *text, *credits; CamelMimePart *part; GConfClient *gconf; + ssize_t len; gconf = mail_config_get_gconf_client (); @@ -1680,9 +1683,9 @@ composer_set_body (EMsgComposer *composer, CamelMimeMessage *message) default: /* do what any sane user would want when replying... */ credits = attribution_format (ATTRIBUTION, message); - text = em_utils_message_to_html(message, credits, EM_FORMAT_QUOTE_CITE); + text = em_utils_message_to_html(message, credits, EM_FORMAT_QUOTE_CITE, &len); g_free (credits); - e_msg_composer_set_body_text(composer, text); + e_msg_composer_set_body_text(composer, text, len); g_free (text); break; } |