aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer-attachment-bar.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2002-07-27 01:38:12 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2002-07-27 01:38:12 +0800
commit40a7fab960298706abb6b80898e97d5b04119303 (patch)
tree789c47982b9b36c9b63bad18b4b006bb19bba019 /composer/e-msg-composer-attachment-bar.c
parent4490c553cca9d20bf55ec1c7f08fe691eca3a794 (diff)
downloadgsoc2013-evolution-40a7fab960298706abb6b80898e97d5b04119303.tar
gsoc2013-evolution-40a7fab960298706abb6b80898e97d5b04119303.tar.gz
gsoc2013-evolution-40a7fab960298706abb6b80898e97d5b04119303.tar.bz2
gsoc2013-evolution-40a7fab960298706abb6b80898e97d5b04119303.tar.lz
gsoc2013-evolution-40a7fab960298706abb6b80898e97d5b04119303.tar.xz
gsoc2013-evolution-40a7fab960298706abb6b80898e97d5b04119303.tar.zst
gsoc2013-evolution-40a7fab960298706abb6b80898e97d5b04119303.zip
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
Diffstat (limited to 'composer/e-msg-composer-attachment-bar.c')
-rw-r--r--composer/e-msg-composer-attachment-bar.c18
1 files changed, 17 insertions, 1 deletions
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 == '/') {