aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-08-10 18:01:18 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-08-10 18:03:19 +0800
commit221c841d423c567f3bfb8b12ea039d7e932fdefa (patch)
tree2f505fd3231fd264d6c7cefe347881c060978542 /mail
parent4b92f70a49aeaf7d097a3be9aeccd82ebba4966d (diff)
downloadgsoc2013-evolution-221c841d423c567f3bfb8b12ea039d7e932fdefa.tar.gz
gsoc2013-evolution-221c841d423c567f3bfb8b12ea039d7e932fdefa.tar.zst
gsoc2013-evolution-221c841d423c567f3bfb8b12ea039d7e932fdefa.zip
Bug 626453 - Show attachments inline when printing
Diffstat (limited to 'mail')
-rw-r--r--mail/em-format-html-print.c14
1 files changed, 14 insertions, 0 deletions
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