]> www.fi.muni.cz Git - evince.git/commitdiff
Fix mime type handling.
authorHib Eris <hib@hiberis.nl>
Wed, 31 Dec 2008 15:58:06 +0000 (15:58 +0000)
committerCarlos Garcia Campos <carlosgc@src.gnome.org>
Wed, 31 Dec 2008 15:58:06 +0000 (15:58 +0000)
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

ChangeLog
libdocument/ev-file-helpers.c

index 3f3ff1409756ed144e4ed6d86d5add5640f6c7e4..f47caf8fde221f22f32449b572c81371a7fc5e8e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-12-31  Hib Eris  <hib@hiberis.nl>
+       
+       * libdocument/ev-file-helpers.c: (get_mime_type_from_uri):
+
+       Fix mime type handling.
+       
 2008-12-31  Carlos Garcia Campos  <carlosgc@gnome.org>
 
        * po/POTFILES.in:
index 6a8c2568eef5fb4b7da5ff0261eeff04dcd47f8c..5998e5ea78e0194773869457f447eab4f6d8867e 100644 (file)
@@ -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;