evince r3318 - in trunk: . libdocument



Author: carlosgc
Date: Wed Dec 31 15:58:06 2008
New Revision: 3318
URL: http://svn.gnome.org/viewvc/evince?rev=3318&view=rev

Log:
2008-12-31  Hib Eris  <hib hiberis nl>

	* libdocument/ev-file-helpers.c: (get_mime_type_from_uri):

	Fix mime type handling.

Modified:
   trunk/ChangeLog
   trunk/libdocument/ev-file-helpers.c

Modified: trunk/libdocument/ev-file-helpers.c
==============================================================================
--- trunk/libdocument/ev-file-helpers.c	(original)
+++ trunk/libdocument/ev-file-helpers.c	Wed Dec 31 15:58:06 2008
@@ -250,7 +250,8 @@
 	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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]