gtk+ r22073 - trunk/gdk-pixbuf



Author: matthiasc
Date: Wed Jan  7 15:02:33 2009
New Revision: 22073
URL: http://svn.gnome.org/viewvc/gtk+?rev=22073&view=rev

Log:
2009-01-07  Matthias Clasen  <mclasen redhat com>

        Bug 566862 â pixbuf_new_from_file does not autodetect format

        * gdk-pixbuf-io.c (_gdk_pixbuf_get_module): Go back to sniffing
        without looking at the filename, to avoid breaking expected
        functionality.



Modified:
   trunk/gdk-pixbuf/ChangeLog
   trunk/gdk-pixbuf/gdk-pixbuf-io.c

Modified: trunk/gdk-pixbuf/gdk-pixbuf-io.c
==============================================================================
--- trunk/gdk-pixbuf/gdk-pixbuf-io.c	(original)
+++ trunk/gdk-pixbuf/gdk-pixbuf-io.c	Wed Jan  7 15:02:33 2009
@@ -794,7 +794,7 @@
 	gchar *type;
 	gint j;
 
-	mime_type = g_content_type_guess (filename, buffer, size, NULL);
+	mime_type = g_content_type_guess (NULL, buffer, size, NULL);
 
 	for (modules = get_file_formats (); modules; modules = g_slist_next (modules)) {
 		GdkPixbufModule *module = (GdkPixbufModule *)modules->data;



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