changeset 24933:b5fccd9d3fce

no reason to create an icon and then scale, gtk_widget_render_icon will be able to cache it this way, I think
author Ka-Hing Cheung <khc@hxbc.us>
date Sat, 10 Jan 2009 07:35:31 +0000
parents 1e56413147dd
children da5c044a2437
files pidgin/gtkblist.c
diffstat 1 files changed, 1 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkblist.c	Sat Jan 10 07:33:26 2009 +0000
+++ b/pidgin/gtkblist.c	Sat Jan 10 07:35:31 2009 +0000
@@ -5385,14 +5385,7 @@
 			  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);