Mercurial > pidgin.yaz
comparison pidgin/gtksmiley.c @ 23988:305fac6af8f9
Updated to use latest spec. in XEP-0231
New namespace. Cache data globally in a running instance based on CID.
Set the PNG compression level param when saving a custom smiley from
GTKIMHTML.
author | Marcus Lundblad <ml@update.uu.se> |
---|---|
date | Fri, 05 Sep 2008 21:55:09 +0000 |
parents | 64a4069e504e |
children | c31be282935d |
comparison
equal
deleted
inserted
replaced
23987:8997acd7d143 | 23988:305fac6af8f9 |
---|---|
271 /* Get the smiley from the custom pixbuf */ | 271 /* Get the smiley from the custom pixbuf */ |
272 gchar *buffer = NULL; | 272 gchar *buffer = NULL; |
273 gsize size = 0; | 273 gsize size = 0; |
274 gchar *filename; | 274 gchar *filename; |
275 | 275 |
276 gdk_pixbuf_save_to_bufferv(s->custom_pixbuf, &buffer, &size, | 276 gdk_pixbuf_save_to_buffer(s->custom_pixbuf, &buffer, &size, |
277 "png", NULL, NULL, NULL); | 277 "png", NULL, "compression", "9", NULL, NULL); |
278 filename = purple_util_get_image_filename(buffer, size); | 278 filename = purple_util_get_image_filename(buffer, size); |
279 s->filename = g_build_filename(purple_smileys_get_storing_dir(), filename, NULL); | 279 s->filename = g_build_filename(purple_smileys_get_storing_dir(), filename, NULL); |
280 purple_util_write_data_to_file_absolute(s->filename, buffer, size); | 280 purple_util_write_data_to_file_absolute(s->filename, buffer, size); |
281 g_free(filename); | 281 g_free(filename); |
282 g_free(buffer); | 282 g_free(buffer); |