Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/libdocument
diff options
context:
space:
mode:
authorHib Eris <hib@hiberis.nl>2008-12-31 15:58:06 (GMT)
committer Carlos Garcia Campos <carlosgc@src.gnome.org>2008-12-31 15:58:06 (GMT)
commitfea1e7ca99a5371cd1dbd8cb9236c4d5d209edb2 (patch)
tree5b1a7fc562421ddf584f3e20f0af2c7672b242db /libdocument
parent22ede3c881cd8b26276d21a2112cec07dadaa4de (diff)
Fix mime type handling.
2008-12-31 Hib Eris <hib@hiberis.nl> * libdocument/ev-file-helpers.c: (get_mime_type_from_uri): Fix mime type handling. svn path=/trunk/; revision=3318
Diffstat (limited to 'libdocument')
-rw-r--r--libdocument/ev-file-helpers.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libdocument/ev-file-helpers.c b/libdocument/ev-file-helpers.c
index 6a8c256..5998e5e 100644
--- a/libdocument/ev-file-helpers.c
+++ b/libdocument/ev-file-helpers.c
@@ -250,7 +250,8 @@ get_mime_type_from_uri (const gchar *uri, GError **error)
if (file_info == NULL)
return NULL;
- mime_type = g_strdup (g_file_info_get_content_type (file_info));
+ mime_type = g_content_type_get_mime_type (
+ g_file_info_get_content_type (file_info));
g_object_unref (file_info);
return mime_type;