diff src/gtkaccount.c @ 9591:bc910eb2679f

[gaim-migrate @ 10434] (20:47:36) nosnilmot: a) because someone reported a bug somewhere, I'll find the number later, b) because gdk-pixbuf should never have had such buggy documentation committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Sun, 25 Jul 2004 00:47:10 +0000
parents a79e03ef63f6
children 93211b7538d6
line wrap: on
line diff
--- a/src/gtkaccount.c	Sun Jul 25 00:44:12 2004 +0000
+++ b/src/gtkaccount.c	Sun Jul 25 00:47:10 2004 +0000
@@ -583,7 +583,9 @@
 		}
 		for (i = 0; prpl_formats[i]; i++) {
 			gaim_debug_info("buddyicon", "Converting buddy icon to %s as %s\n", prpl_formats[i], filename);
-			if (gdk_pixbuf_save (pixbuf, filename, prpl_formats[i], &error, NULL) == FALSE)
+			/* The gdk-pixbuf documentation is wrong. gdk_pixbuf_save returns TRUE if it was successful,
+			 * FALSE if an error was set. */
+			if (gdk_pixbuf_save (pixbuf, filename, prpl_formats[i], &error, NULL) == TRUE)
 				break;
 		}
 		if (!error) {