pidgin: 8d1c52de: Use a stock size that we are sure exists...

datallah at pidgin.im datallah at pidgin.im
Sun Feb 15 16:00:39 EST 2009


-----------------------------------------------------------------
Revision: 8d1c52de72341b58f7434926e37b42d25aa9cf71
Ancestor: 0ed824d0e7a548cb9a2fc4da692270475567d7d6
Author: datallah at pidgin.im
Date: 2009-02-15T20:54:59
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/8d1c52de72341b58f7434926e37b42d25aa9cf71

Modified files:
        pidgin/gtkblist.c

ChangeLog: 

Use a stock size that we are sure exists (which ends up making the icon a pixel
smaller).  If this a problem, we can register a new icon size.
Fixes #8194.

-------------- next part --------------
============================================================
--- pidgin/gtkblist.c	4d322f2f724403f447c49ffd3cde271fb15f088d
+++ pidgin/gtkblist.c	3baf04fd752562b8e188205c667acdaaf59db0cc
@@ -66,7 +66,7 @@
 #include <gtk/gtk.h>
 #include <gdk/gdk.h>
 
-#define HEADLINE_CLOSE_SIZE 12
+#define HEADLINE_CLOSE_SIZE 11
 
 typedef struct
 {
@@ -5387,7 +5387,8 @@ 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, HEADLINE_CLOSE_SIZE, NULL);
+	gtkblist->headline_close = gtk_widget_render_icon(ebox, GTK_STOCK_CLOSE,
+		gtk_icon_size_from_name(PIDGIN_ICON_SIZE_TANGO_MICROSCOPIC), 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