From 221c841d423c567f3bfb8b12ea039d7e932fdefa Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Tue, 10 Aug 2010 06:01:18 -0400 Subject: Bug 626453 - Show attachments inline when printing --- mail/em-format-html-print.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'mail') diff --git a/mail/em-format-html-print.c b/mail/em-format-html-print.c index e660602e46..f7eb288fba 100644 --- a/mail/em-format-html-print.c +++ b/mail/em-format-html-print.c @@ -50,15 +50,29 @@ efhp_finalize (GObject *object) G_OBJECT_CLASS (parent_class)->finalize (object); } +static gboolean +efhp_is_inline (EMFormat *emf, + const gchar *part_id, + CamelMimePart *mime_part, + const EMFormatHandler *handle) +{ + /* When printing, inline any part that has a handler. */ + return (handle != NULL); +} + static void efhp_class_init (EMFormatHTMLPrintClass *class) { GObjectClass *object_class; + EMFormatClass *format_class; parent_class = g_type_class_peek_parent (class); object_class = G_OBJECT_CLASS (class); object_class->finalize = efhp_finalize; + + format_class = EM_FORMAT_CLASS (class); + format_class->is_inline = efhp_is_inline; } static void -- cgit