From a4264abf3b15a74c2c4e68a547eddc395251b957 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Tue, 19 Sep 2000 00:07:47 +0000 Subject: 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 --- composer/e-msg-composer-attachment-bar.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (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 50923f7e19..8a6272d833 100644 --- a/composer/e-msg-composer-attachment-bar.c +++ b/composer/e-msg-composer-attachment-bar.c @@ -23,6 +23,7 @@ #include #include +#include #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) -- cgit v1.2.3