pidgin: 275fcb4d: Going on the assumption that the user ha...

markdoliner at pidgin.im markdoliner at pidgin.im
Fri Mar 26 05:40:32 EDT 2010


-----------------------------------------------------------------
Revision: 275fcb4db5ba847f0178cdd86ad90ce3513cb5a4
Ancestor: 6370802635d22e21c8fa94f4c67275f8e545de51
Author: markdoliner at pidgin.im
Date: 2010-03-26T09:37:16
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/275fcb4db5ba847f0178cdd86ad90ce3513cb5a4

Modified files:
        pidgin/gtkutils.c

ChangeLog: 

Going on the assumption that the user has the same version of gdk-pixbuf as
gtk, let's not bother checking to make sure their version of gdk-pixbuf is
>2.8

-------------- next part --------------
============================================================
--- pidgin/gtkutils.c	65607cf59581e5034561d50f8dd7c0c42017dc59
+++ pidgin/gtkutils.c	5a2a8714105dcb078f7e3f7af1eb8a37f2847512
@@ -2427,9 +2427,7 @@ pidgin_convert_buddy_icon(PurplePlugin *
 			purple_debug_info("buddyicon", "Converting buddy icon to %s\n", prpl_formats[i]);
 			/* The "compression" param wasn't supported until gdk-pixbuf 2.8.
 			 * Using it in previous versions causes the save to fail (and an assert message).  */
-			if ((gdk_pixbuf_major_version > 2 || (gdk_pixbuf_major_version == 2
-						&& gdk_pixbuf_minor_version >= 8))
-					&& strcmp(prpl_formats[i], "png") == 0) {
+			if (g_str_equal(prpl_formats[i], "png")) {
 				if (gdk_pixbuf_save_to_buffer(pixbuf, &contents, &length,
 						prpl_formats[i], &error, "compression", "9", NULL))
 				{


More information about the Commits mailing list