pidgin: ccaad421: no reason to create an icon and then sca...

khc at pidgin.im khc at pidgin.im
Sat Jan 10 02:40:44 EST 2009


-----------------------------------------------------------------
Revision: ccaad421dd5df4572e54a739c7b0eaf687080cdd
Ancestor: be2ed245300b40558248382659b38f16713fbe79
Author: khc at pidgin.im
Date: 2009-01-10T07:35:31
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/ccaad421dd5df4572e54a739c7b0eaf687080cdd

Modified files:
        pidgin/gtkblist.c

ChangeLog: 

no reason to create an icon and then scale, gtk_widget_render_icon
will be able to cache it this way, I think


-------------- next part --------------
============================================================
--- pidgin/gtkblist.c	444f55d256e1e60492b60ece464c7f91d1229c1c
+++ pidgin/gtkblist.c	4d8b2c064b2764321bd6d81b7622acaa76f5962a
@@ -5385,14 +5385,7 @@ static void pidgin_blist_show(PurpleBudd
 			  NULL);
 	gtk_widget_set_name(gtkblist->headline_hbox, "gtk-tooltips");
 
-	gtkblist->headline_close = gtk_widget_render_icon(ebox, GTK_STOCK_CLOSE, -1, NULL);
-	if (gtkblist->headline_close) {
-		GdkPixbuf *scale = gdk_pixbuf_scale_simple(gtkblist->headline_close,
-				HEADLINE_CLOSE_SIZE, HEADLINE_CLOSE_SIZE, GDK_INTERP_BILINEAR);
-		gdk_pixbuf_unref(gtkblist->headline_close);
-		gtkblist->headline_close = scale;
-	}
-
+	gtkblist->headline_close = gtk_widget_render_icon(ebox, GTK_STOCK_CLOSE, HEADLINE_CLOSE_SIZE, NULL);
 	gtkblist->hand_cursor = gdk_cursor_new (GDK_HAND2);
 	gtkblist->arrow_cursor = gdk_cursor_new (GDK_LEFT_PTR);
 


More information about the Commits mailing list