Mercurial > pidgin.yaz
changeset 9340:7fa8eff579b5
[gaim-migrate @ 10148]
nosnilmot thinks this fixes another link. I think he's right.
This one isn't my fault though :)
committer: Tailor Script <tailor@pidgin.im>
author | Tim Ringenbach <marv@pidgin.im> |
---|---|
date | Tue, 22 Jun 2004 01:05:42 +0000 |
parents | 4d1ba3243f7a |
children | cf5b5b63228d |
files | src/gtkblist.c |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkblist.c Tue Jun 22 00:57:21 2004 +0000 +++ b/src/gtkblist.c Tue Jun 22 01:05:42 2004 +0000 @@ -1286,6 +1286,7 @@ for(bnode = node->child; bnode; bnode = bnode->next) { GaimBuddy *buddy = (GaimBuddy*)bnode; + GdkPixbuf *buf; GtkWidget *submenu; GtkWidget *image; @@ -1297,9 +1298,10 @@ continue; menuitem = gtk_image_menu_item_new_with_label(buddy->name); - image = gtk_image_new_from_pixbuf( - gaim_gtk_blist_get_status_icon(bnode, - GAIM_STATUS_ICON_SMALL)); + buf = gaim_gtk_blist_get_status_icon(bnode, + GAIM_STATUS_ICON_SMALL); + image = gtk_image_new_from_pixbuf(buf); + g_object_unref(G_OBJECT(buf)); gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(menuitem), image); gtk_widget_show(image);