[gtk+/wip/css: 142/163] spinbutton: Pass the right size
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/css: 142/163] spinbutton: Pass the right size
- Date: Sun, 8 Jan 2012 01:01:56 +0000 (UTC)
commit 8dcefb8e1c867a5541e9d6fec43e6442bf9802a5
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]