aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-11-08 11:09:32 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-11-10 08:57:09 +0800
commit6db0e254190a80cf1cccb3629442b78e76c55b36 (patch)
tree7d3199173472fb0d4efc70f1ca6ecb56f75fccb4 /mail
parent214f3a8038667a7bf75c379b91a8a687095d4d05 (diff)
downloadgsoc2013-evolution-6db0e254190a80cf1cccb3629442b78e76c55b36.tar.gz
gsoc2013-evolution-6db0e254190a80cf1cccb3629442b78e76c55b36.tar.zst
gsoc2013-evolution-6db0e254190a80cf1cccb3629442b78e76c55b36.zip
Prototype an inline image plugin.
Uses GtkImageView to display the image.
Diffstat (limited to 'mail')
-rw-r--r--mail/em-format-html-display.c2
-rw-r--r--mail/em-format-html.c4
2 files changed, 6 insertions, 0 deletions
diff --git a/mail/em-format-html-display.c b/mail/em-format-html-display.c
index 6a2f56525c..de64e2b15c 100644
--- a/mail/em-format-html-display.c
+++ b/mail/em-format-html-display.c
@@ -699,6 +699,7 @@ efhd_image(EMFormatHTML *efh, CamelStream *stream, CamelMimePart *part, EMFormat
/* ********************************************************************** */
static EMFormatHandler type_builtin_table[] = {
+#if 0
{ (gchar *) "image/gif", (EMFormatFunc)efhd_image },
{ (gchar *) "image/jpeg", (EMFormatFunc)efhd_image },
{ (gchar *) "image/png", (EMFormatFunc)efhd_image },
@@ -721,6 +722,7 @@ static EMFormatHandler type_builtin_table[] = {
{ (gchar *) "image/jpg", (EMFormatFunc)efhd_image },
{ (gchar *) "image/pjpeg", (EMFormatFunc)efhd_image },
+#endif
{ (gchar *) "x-evolution/message/prefix", (EMFormatFunc)efhd_message_prefix },
{ (gchar *) "x-evolution/message/post-header", (EMFormatFunc)efhd_message_add_bar }
diff --git a/mail/em-format-html.c b/mail/em-format-html.c
index 47213dc5d5..29bb47653f 100644
--- a/mail/em-format-html.c
+++ b/mail/em-format-html.c
@@ -2105,6 +2105,7 @@ efh_image(EMFormatHTML *efh, CamelStream *stream, CamelMimePart *part, EMFormatH
}
static EMFormatHandler type_builtin_table[] = {
+#if 0
{ (gchar *) "image/gif", (EMFormatFunc)efh_image },
{ (gchar *) "image/jpeg", (EMFormatFunc)efh_image },
{ (gchar *) "image/png", (EMFormatFunc)efh_image },
@@ -2120,6 +2121,7 @@ static EMFormatHandler type_builtin_table[] = {
{ (gchar *) "image/x-portable-graymap", (EMFormatFunc)efh_image },
{ (gchar *) "image/x-portable-pixmap", (EMFormatFunc)efh_image },
{ (gchar *) "image/x-xpixmap", (EMFormatFunc)efh_image },
+#endif
{ (gchar *) "text/enriched", (EMFormatFunc)efh_text_enriched },
{ (gchar *) "text/plain", (EMFormatFunc)efh_text_plain },
{ (gchar *) "text/html", (EMFormatFunc)efh_text_html },
@@ -2133,8 +2135,10 @@ static EMFormatHandler type_builtin_table[] = {
that some idiot mailer writers out there decide to pull out
of their proverbials at random. */
+#if 0
{ (gchar *) "image/jpg", (EMFormatFunc)efh_image },
{ (gchar *) "image/pjpeg", (EMFormatFunc)efh_image },
+#endif
/* special internal types */