# HG changeset patch # User Mark Doliner # Date 1269596236 0 # Node ID 08d4ec689d66253d123cac5d279bc0faf079601f # Parent cfa57a2cd9d14759a7399fc6313525ebb42a781e 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 diff -r cfa57a2cd9d1 -r 08d4ec689d66 pidgin/gtkutils.c --- 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)) {