changeset 25454:e0dc8933ce26

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.
author Daniel Atallah <daniel.atallah@gmail.com>
date Sun, 15 Feb 2009 20:54:59 +0000
parents a946cffda321
children 2cece7df80c3
files pidgin/gtkblist.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkblist.c	Sun Feb 15 07:19:59 2009 +0000
+++ b/pidgin/gtkblist.c	Sun Feb 15 20:54:59 2009 +0000
@@ -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 @@
 			  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);