From fea1e7ca99a5371cd1dbd8cb9236c4d5d209edb2 Mon Sep 17 00:00:00 2001 From: Hib Eris Date: Wed, 31 Dec 2008 15:58:06 +0000 Subject: [PATCH] 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 --- ChangeLog | 6 ++++++ libdocument/ev-file-helpers.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) 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; -- 2.43.5