From: Hib Eris Date: Wed, 31 Dec 2008 15:58:06 +0000 (+0000) Subject: Fix mime type handling. X-Git-Tag: EVINCE_2_25_4~11 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?p=evince.git;a=commitdiff_plain;h=fea1e7ca99a5371cd1dbd8cb9236c4d5d209edb2 Fix mime type handling. 2008-12-31 Hib Eris * libdocument/ev-file-helpers.c: (get_mime_type_from_uri): Fix mime type handling. svn path=/trunk/; revision=3318 --- diff --git a/ChangeLog b/ChangeLog index 3f3ff140..f47caf8f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-12-31 Hib Eris + + * libdocument/ev-file-helpers.c: (get_mime_type_from_uri): + + Fix mime type handling. + 2008-12-31 Carlos Garcia Campos * po/POTFILES.in: 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;