Mercurial > pidgin.yaz
comparison pidgin/gtkft.c @ 30232:b680a9f2b641
Use PNG instead of JPEG for FT thumbnails which is supported on both MSN
and XMPP. Maybe we should add a hint for the UI similar to buddy icons.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Sun, 28 Feb 2010 05:35:20 +0000 |
parents | d1d03fff1f62 |
children | fd354d0bfbc0 |
comparison
equal
deleted
inserted
replaced
30231:d1d03fff1f62 | 30232:b680a9f2b641 |
---|---|
1173 if (thumbnail) { | 1173 if (thumbnail) { |
1174 gchar *buffer = NULL; | 1174 gchar *buffer = NULL; |
1175 gsize size; | 1175 gsize size; |
1176 char *option_keys[2] = {"quality", NULL}; | 1176 char *option_keys[2] = {"quality", NULL}; |
1177 char *option_values[2] = {"75", NULL}; | 1177 char *option_values[2] = {"75", NULL}; |
1178 gdk_pixbuf_save_to_bufferv(thumbnail, &buffer, &size, "jpeg", | 1178 gdk_pixbuf_save_to_bufferv(thumbnail, &buffer, &size, "png", |
1179 option_keys, option_values, NULL); | 1179 option_keys, option_values, NULL); |
1180 | 1180 |
1181 if (buffer) { | 1181 if (buffer) { |
1182 purple_debug_info("pidgin", | 1182 purple_debug_info("pidgin", |
1183 "created thumbnail of %" G_GSIZE_FORMAT " bytes\n", | 1183 "created thumbnail of %" G_GSIZE_FORMAT " bytes\n", |