gtk+ r22322 - in trunk: . gdk-pixbuf



Author: bratsche
Date: Fri Feb 13 01:25:36 2009
New Revision: 22322
URL: http://svn.gnome.org/viewvc/gtk+?rev=22322&view=rev

Log:
2009-02-12  Cody Russell  <bratsche gnome org>

        Bug 571576 â gdk_pixbuf_save_to_stream() broken

        * gdk-pixbuf/gdk-pixbuf-io.c: Fix gdk_pixbuf_save_to_stream() so that
        it does not always return FALSE (even when it succeeds), and also so
        that it does not set error to NULL when something goes wrong.



Modified:
   trunk/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	Fri Feb 13 01:25:36 2009
@@ -2406,13 +2406,10 @@
 	data.stream = stream;
 	data.cancellable = cancellable;
 
-	if (!gdk_pixbuf_save_to_callbackv (pixbuf, save_to_stream, 
-					   &data, type, 
-					   keys, values, 
-					   error)) {
-		error = NULL; /* Ignore further errors */
-		res = FALSE;
-	}
+	res = gdk_pixbuf_save_to_callbackv (pixbuf, save_to_stream, 
+					    &data, type, 
+					    keys, values, 
+					    error);
 
 	g_strfreev (keys);
 	g_strfreev (values);



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