]> www.fi.muni.cz Git - evince.git/blobdiff - libdocument/ev-file-helpers.c
Fix mime type handling.
[evince.git] / libdocument / ev-file-helpers.c
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;