[gtk+/wip/css: 143/154] spinbutton: Pass the right size
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/css: 143/154] spinbutton: Pass the right size
- Date: Sat, 7 Jan 2012 14:59:57 +0000 (UTC)
commit c35715062179b6b8b3a1f2b43830f205aa3fcecf
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 bff3d66..92bfd14 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]