aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer-attachment-bar.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-09-19 08:07:47 +0800
committerDan Winship <danw@src.gnome.org>2000-09-19 08:07:47 +0800
commita4264abf3b15a74c2c4e68a547eddc395251b957 (patch)
tree4caa035ed37dfbb3c84a2b9fd29828e5239d8de8 /composer/e-msg-composer-attachment-bar.c
parent267e69cf010fa5ab7381a30740a264a66a9493a2 (diff)
downloadgsoc2013-evolution-a4264abf3b15a74c2c4e68a547eddc395251b957.tar
gsoc2013-evolution-a4264abf3b15a74c2c4e68a547eddc395251b957.tar.gz
gsoc2013-evolution-a4264abf3b15a74c2c4e68a547eddc395251b957.tar.bz2
gsoc2013-evolution-a4264abf3b15a74c2c4e68a547eddc395251b957.tar.lz
gsoc2013-evolution-a4264abf3b15a74c2c4e68a547eddc395251b957.tar.xz
gsoc2013-evolution-a4264abf3b15a74c2c4e68a547eddc395251b957.tar.zst
gsoc2013-evolution-a4264abf3b15a74c2c4e68a547eddc395251b957.zip
Use gnome_vfs_get_file_info.
* e-msg-composer-attachment.c (get_mime_type): Use gnome_vfs_get_file_info. * e-msg-composer-attachment-bar.c (update): Use gnome_vfs_mime functions, not old gnome_mime. svn path=/trunk/; revision=5496
Diffstat (limited to 'composer/e-msg-composer-attachment-bar.c')
-rw-r--r--composer/e-msg-composer-attachment-bar.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/composer/e-msg-composer-attachment-bar.c b/composer/e-msg-composer-attachment-bar.c
index 50923f7e19..8a6272d833 100644
--- a/composer/e-msg-composer-attachment-bar.c
+++ b/composer/e-msg-composer-attachment-bar.c
@@ -23,6 +23,7 @@
#include <gnome.h>
#include <glade/glade.h>
+#include <libgnomevfs/gnome-vfs-mime-info.h>
#include "e-msg-composer-attachment.h"
#include "e-msg-composer-attachment-bar.h"
@@ -194,13 +195,14 @@ update (EMsgComposerAttachmentBar *bar)
content_type = camel_mime_part_get_content_type (attachment->body);
mime_type = g_strdup_printf ("%s/%s", content_type->type,
content_type->subtype);
- icon_name = gnome_mime_get_value (mime_type, "icon-filename");
+ icon_name = gnome_vfs_mime_get_value (mime_type,
+ "icon-filename");
g_free (mime_type);
/* FIXME we need some better default icon. */
if (icon_name == NULL)
- icon_name = gnome_mime_get_value ("text/plain",
- "icon-filename");
+ icon_name = gnome_vfs_mime_get_value ("text/plain",
+ "icon-filename");
desc = camel_mime_part_get_description (attachment->body);
if (!desc)