Mercurial > pidgin.yaz
changeset 11625:42d9a9203767
[gaim-migrate @ 13900]
patch by sadrul to improve the send to menu's icons.
I had to manually apply this because patch kept failing 1 out of 1 hunks,
and faceprint wasn't here to help.
committer: Tailor Script <tailor@pidgin.im>
author | Tim Ringenbach <marv@pidgin.im> |
---|---|
date | Sat, 08 Oct 2005 17:24:07 +0000 |
parents | 45d54425dc65 |
children | 52695596064d |
files | src/gtkconv.c |
diffstat | 1 files changed, 3 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkconv.c Sat Oct 08 16:08:51 2005 +0000 +++ b/src/gtkconv.c Sat Oct 08 17:24:07 2005 +0000 @@ -2636,25 +2636,22 @@ GtkWidget *label; GtkWidget *image; GtkWidget *menuitem; - GdkPixbuf *pixbuf, *scale; + GdkPixbuf *pixbuf; gchar *text; account = bud->account; /* Create a pixmap for the protocol icon. */ - pixbuf = gaim_gtk_create_prpl_icon(account); - scale = gdk_pixbuf_scale_simple(pixbuf, 16, 16, GDK_INTERP_BILINEAR); - + pixbuf = gaim_gtk_blist_get_status_icon((GaimBlistNode*)bud, GAIM_STATUS_ICON_SMALL); /* Now convert it to GtkImage */ if (pixbuf == NULL) image = gtk_image_new(); else - image = gtk_image_new_from_pixbuf(scale); + image = gtk_image_new_from_pixbuf(pixbuf); gtk_size_group_add_widget(sg, image); - g_object_unref(G_OBJECT(scale)); g_object_unref(G_OBJECT(pixbuf)); /* Make our menu item */