From 113bb17ac1b2e89c64bbcd768d5688cb776cfb3f Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Tue, 23 Oct 2001 01:48:05 +0000 Subject: New fun macro. 2001-10-22 Jeffrey Stedfast * mail-display.h (mail_html_write_string): New fun macro. * mail-format.c (write_one_text_plain_chunk): Use gtk_html_write instead of mail_html_write so we avoid strdup'ing the text. (handle_text_plain_flowed): Use the mail_html_write_string macro. (handle_message_rfc822): Here too. (mail_format_raw_message): We can do it here also... (attachment_header): We can do it a little bit here... (write_address): A microscopic bit here... (write_hr): same. svn path=/trunk/; revision=13925 --- mail/mail-display.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mail/mail-display.h') diff --git a/mail/mail-display.h b/mail/mail-display.h index 61dd4f0579..a44d2483e8 100644 --- a/mail/mail-display.h +++ b/mail/mail-display.h @@ -74,6 +74,8 @@ void mail_display_set_charset (MailDisplay *mail_display, void mail_display_load_images (MailDisplay *mail_display); +#define mail_html_write_string(html, stream, string) gtk_html_write (html, stream, string, strlen (string)) + void mail_html_write (GtkHTML *html, GtkHTMLStream *stream, const char *format, ...); -- cgit v1.2.3