changeset 30048:08d4ec689d66

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
author Mark Doliner <mark@kingant.net>
date Fri, 26 Mar 2010 09:37:16 +0000
parents cfa57a2cd9d1
children 55a807c06fbb
files pidgin/gtkutils.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkutils.c	Fri Mar 26 09:30:00 2010 +0000
+++ b/pidgin/gtkutils.c	Fri Mar 26 09:37:16 2010 +0000
@@ -2427,9 +2427,7 @@
 			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))
 				{