From b024121e896a03f60f92496b9ed5df259547aa7a Mon Sep 17 00:00:00 2001 From: Radek Doulik Date: Wed, 25 Apr 2001 09:32:46 +0000 Subject: signature changing * signature changing 2001-04-25 Radek Doulik * mail-tools.c (mail_tool_quote_message): set object data directly in HTML source * mail-callbacks.c (mail_generate_reply): remove \n from citation (mail_generate_reply): don't use e_msg_composer_mark_text_orig svn path=/trunk/; revision=9558 --- mail/mail-callbacks.c | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'mail/mail-callbacks.c') diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c index 083c3e89ff..722d8c9a7e 100644 --- a/mail/mail-callbacks.c +++ b/mail/mail-callbacks.c @@ -400,20 +400,19 @@ create_msg_composer (const char *url) gchar *sig_file = NULL; EMsgComposer *composer; - account = mail_config_get_default_account (); + account = mail_config_get_default_account (); send_html = mail_config_get_send_html (); if (account->id) sig_file = account->id->signature; - if (url != NULL) { - composer = e_msg_composer_new_from_url (url); - if (composer) - e_msg_composer_set_send_html (composer, send_html); - } else - composer = e_msg_composer_new_with_sig_file (sig_file, send_html); + composer = url ? e_msg_composer_new_from_url (url) : e_msg_composer_new (); + if (composer) { + e_msg_composer_set_send_html (composer, send_html); + e_msg_composer_set_sig_file (composer, sig_file); + } - return (GtkWidget *)composer; + return GTK_WIDGET (composer); } void @@ -590,13 +589,12 @@ mail_generate_reply (CamelMimeMessage *message, gboolean to_all) camel_internet_address_get (sender, 0, &name, &address); date = camel_mime_message_get_date (message, &offset); date_str = header_format_date (date, offset); - text = mail_tool_quote_message (message, _("On %s, %s wrote:\n"), date_str, name && *name ? name : address); + text = mail_tool_quote_message (message, _("On %s, %s wrote:"), date_str, name && *name ? name : address); g_free (date_str); if (text) { e_msg_composer_set_body_text (composer, text); g_free (text); - e_msg_composer_mark_text_orig (composer); } /* Set the recipients */ -- cgit