From: Tim R. <ma...@us...> - 2005-10-08 17:24:16
|
Update of /cvsroot/gaim/gaim/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6626 Modified Files: gtkconv.c Log Message: 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. Index: gtkconv.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/gtkconv.c,v retrieving revision 1.617 retrieving revision 1.618 diff -u -d -p -r1.617 -r1.618 --- gtkconv.c 6 Oct 2005 15:01:08 -0000 1.617 +++ gtkconv.c 8 Oct 2005 17:24:07 -0000 1.618 @@ -2636,25 +2636,22 @@ create_sendto_item(GtkWidget *menu, GtkS 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 */ |