[gtk+/wip/css: 143/154] spinbutton: Pass the right size



commit cfff4c153ff6c84d7032957bbf1eebd1efef9764
Author: Benjamin Otte <otte redhat com>
Date:   Fri Jan 6 16:08:05 2012 +0100

    spinbutton: Pass the right size
    
    We need a better diffrentiation between icon sizes - ie GtkIconSize vs
    pixel size. Or more CSS.

 gtk/gtkspinbutton.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkspinbutton.c b/gtk/gtkspinbutton.c
index bd4f8a3..b791d40 100644
--- a/gtk/gtkspinbutton.c
+++ b/gtk/gtkspinbutton.c
@@ -639,7 +639,7 @@ create_one_pixbuf (GtkStyleContext *context,
       GtkIconSet *icon_set;
 
       icon_set = gtk_style_context_lookup_icon_set (context, GTK_STOCK_MISSING_IMAGE);
-      pix = gtk_icon_set_render_icon_pixbuf (icon_set, context, size);
+      pix = gtk_icon_set_render_icon_pixbuf (icon_set, context, GTK_ICON_SIZE_MENU);
 
       g_warning ("Unable to fetch icon %s from the icon theme", icon_name);
     }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]