pidgin/gtkutils.c

changeset 29928
ca0194c3daba
parent 29927
80855a5471ed
child 29931
1d21766368d2
equal deleted inserted replaced
29927:80855a5471ed 29928:ca0194c3daba
2425 2425
2426 for (i = 0; prpl_formats[i]; i++) { 2426 for (i = 0; prpl_formats[i]; i++) {
2427 purple_debug_info("buddyicon", "Converting buddy icon to %s\n", prpl_formats[i]); 2427 purple_debug_info("buddyicon", "Converting buddy icon to %s\n", prpl_formats[i]);
2428 /* The "compression" param wasn't supported until gdk-pixbuf 2.8. 2428 /* The "compression" param wasn't supported until gdk-pixbuf 2.8.
2429 * Using it in previous versions causes the save to fail (and an assert message). */ 2429 * Using it in previous versions causes the save to fail (and an assert message). */
2430 if ((gdk_pixbuf_major_version > 2 || (gdk_pixbuf_major_version == 2 2430 if (g_str_equal(prpl_formats[i], "png")) {
2431 && gdk_pixbuf_minor_version >= 8))
2432 && strcmp(prpl_formats[i], "png") == 0) {
2433 if (gdk_pixbuf_save_to_buffer(pixbuf, &contents, &length, 2431 if (gdk_pixbuf_save_to_buffer(pixbuf, &contents, &length,
2434 prpl_formats[i], &error, "compression", "9", NULL)) 2432 prpl_formats[i], &error, "compression", "9", NULL))
2435 { 2433 {
2436 success = TRUE; 2434 success = TRUE;
2437 break; 2435 break;

mercurial