# HG changeset patch # User Ka-Hing Cheung # Date 1231572931 0 # Node ID b5fccd9d3fce18cde750e1ce8c0372848eb70f1c # Parent 1e56413147dd0a10dcbfc5ff01f1ad0e4e7c94f9 no reason to create an icon and then scale, gtk_widget_render_icon will be able to cache it this way, I think diff -r 1e56413147dd -r b5fccd9d3fce pidgin/gtkblist.c --- 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);