comparison src/gtkaccount.c @ 9710:4d2eba0e14ee

[gaim-migrate @ 10571] Revert nosnilmot's only-cache-your-own-buddy-icon-if-supported change committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 08 Aug 2004 00:52:38 +0000
parents 4d05b6e9e9cd
children 4a15962c344a
comparison
equal deleted inserted replaced
9709:4d05b6e9e9cd 9710:4d2eba0e14ee
586 586
587 for (i = 0; prpl_formats[i]; i++) { 587 for (i = 0; prpl_formats[i]; i++) {
588 gaim_debug_info("buddyicon", "Converting buddy icon to %s as %s\n", prpl_formats[i], filename); 588 gaim_debug_info("buddyicon", "Converting buddy icon to %s as %s\n", prpl_formats[i], filename);
589 /* The gdk-pixbuf documentation is wrong. gdk_pixbuf_save returns TRUE if it was successful, 589 /* The gdk-pixbuf documentation is wrong. gdk_pixbuf_save returns TRUE if it was successful,
590 * FALSE if an error was set. */ 590 * FALSE if an error was set. */
591 if (gdk_pixbuf_format_is_writable(format) && 591 if (gdk_pixbuf_save (pixbuf, filename, prpl_formats[i], &error, NULL) == TRUE)
592 gdk_pixbuf_save(pixbuf, filename, prpl_formats[i], &error, NULL) == TRUE) 592 break;
593 break;
594 } 593 }
595 if (!error) { 594 if (!error) {
596 g_free(random); 595 g_free(random);
597 g_object_unref(G_OBJECT(pixbuf)); 596 g_object_unref(G_OBJECT(pixbuf));
598 return filename; 597 return filename;