From a10247b540f298d0ae6360b5d31f7f47a733adf8 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Tue, 1 Feb 2011 18:09:00 +0100 Subject: Bug #635144 - Using external editor duplicates signature --- composer/e-msg-composer.c | 6 ++++-- composer/e-msg-composer.h | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'composer') diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index 9f011a26e1..7439007ae4 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -4078,18 +4078,20 @@ e_msg_composer_new_from_url (EShell *shell, * e_msg_composer_set_body_text: * @composer: a composer object * @text: the HTML text to initialize the editor with + * @update_signature: whether update signature in the text after setting it; + * Might be usually called with TRUE. * * Loads the given HTML text into the editor. **/ void e_msg_composer_set_body_text (EMsgComposer *composer, const gchar *text, - gssize len) + gboolean update_signature) { g_return_if_fail (E_IS_MSG_COMPOSER (composer)); g_return_if_fail (text != NULL); - set_editor_text (composer, text, TRUE); + set_editor_text (composer, text, update_signature); } /** diff --git a/composer/e-msg-composer.h b/composer/e-msg-composer.h index 2fe912d7a8..296bb35a2f 100644 --- a/composer/e-msg-composer.h +++ b/composer/e-msg-composer.h @@ -110,7 +110,7 @@ void e_msg_composer_print (EMsgComposer *composer, void e_msg_composer_set_body_text (EMsgComposer *composer, const gchar *text, - gssize len); + gboolean update_signature); void e_msg_composer_set_body (EMsgComposer *composer, const gchar *body, const gchar *mime_type); -- cgit