Mercurial > pidgin
changeset 18213:270e87f5cde0
Round the other icons too
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Wed, 20 Jun 2007 22:12:47 +0000 |
parents | 77b9ceb83426 |
children | bf0032658576 |
files | pidgin/gtkconv.c |
diffstat | 1 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin/gtkconv.c Wed Jun 20 21:00:34 2007 +0000 +++ b/pidgin/gtkconv.c Wed Jun 20 22:12:47 2007 +0000 @@ -6445,18 +6445,23 @@ } if (gdk_pixbuf_animation_is_static_image(gtkconv->u.im->anim)) { + GdkPixbuf *stat; gtkconv->u.im->iter = NULL; - buf = gdk_pixbuf_animation_get_static_image(gtkconv->u.im->anim); + stat = gdk_pixbuf_animation_get_static_image(gtkconv->u.im->anim); + buf = gdk_pixbuf_add_alpha(stat, FALSE, 0, 0, 0); } else { + GdkPixbuf *stat; gtkconv->u.im->iter = gdk_pixbuf_animation_get_iter(gtkconv->u.im->anim, NULL); /* LEAK */ - buf = gdk_pixbuf_animation_iter_get_pixbuf(gtkconv->u.im->iter); + stat = gdk_pixbuf_animation_iter_get_pixbuf(gtkconv->u.im->iter); + buf = gdk_pixbuf_add_alpha(stat, FALSE, 0, 0, 0); if (gtkconv->u.im->animate) start_anim(NULL, gtkconv); } scale = gdk_pixbuf_scale_simple(buf, 32, 32, GDK_INTERP_BILINEAR); + g_object_unref(buf); if (pidgin_gdk_pixbuf_is_opaque(scale)) pidgin_gdk_pixbuf_make_round(scale); gtkconv->u.im->icon_container = gtk_vbox_new(FALSE, 0);