From 40a7fab960298706abb6b80898e97d5b04119303 Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Fri, 26 Jul 2002 17:38:12 +0000 Subject: Special-case message/digest and give it a nice icon. [#9786] * e-msg-composer-attachment-bar.c (pixbuf_for_mime_type): Special-case message/digest and give it a nice icon. [#9786] * Makefile.am (INCLUDES): Add -D for EVOLUTION_ICONSDIR. svn path=/trunk/; revision=17609 --- composer/e-msg-composer-attachment-bar.c | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'composer/e-msg-composer-attachment-bar.c') diff --git a/composer/e-msg-composer-attachment-bar.c b/composer/e-msg-composer-attachment-bar.c index 6df2d65485..5aaf614765 100644 --- a/composer/e-msg-composer-attachment-bar.c +++ b/composer/e-msg-composer-attachment-bar.c @@ -220,7 +220,23 @@ pixbuf_for_mime_type (const char *mime_type) const char *icon_name; char *filename = NULL; GdkPixbuf *pixbuf; - + + /* Special-case these two since GNOME VFS doesn't know about them and + they are used every time the user forwards one or more messages + inline. (See #9786.) */ + if (strcmp (mime_type, "message/digest") == 0 + || strcmp (mime_type, "multipart/digest") == 0 + || strcmp (mime_type, "message/rfc822") == 0) { + char *name; + + name = g_concat_dir_and_file (EVOLUTION_ICONSDIR, "mail.png"); + pixbuf = gdk_pixbuf_new_from_file (name); + g_free (name); + + if (pixbuf != NULL) + return pixbuf; + } + icon_name = gnome_vfs_mime_get_value (mime_type, "icon-filename"); if (icon_name) { if (*icon_name == '/') { -- cgit v1.2.3