X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=libdocument%2Fev-file-helpers.c;h=5998e5ea78e0194773869457f447eab4f6d8867e;hb=fea1e7ca99a5371cd1dbd8cb9236c4d5d209edb2;hp=6a8c2568eef5fb4b7da5ff0261eeff04dcd47f8c;hpb=22ede3c881cd8b26276d21a2112cec07dadaa4de;p=evince.git diff --git a/libdocument/ev-file-helpers.c b/libdocument/ev-file-helpers.c index 6a8c2568..5998e5ea 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;