From 68c74e142709458b95ccc76d8d21c3f038e42ecf Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Thu, 17 Nov 2011 19:43:13 +0100 Subject: [PATCH] Set top/bottom style classes on spinbutton buttons --- gtk/gtkspinbutton.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gtk/gtkspinbutton.c b/gtk/gtkspinbutton.c index b65f20f19b..8467efa999 100644 --- a/gtk/gtkspinbutton.c +++ b/gtk/gtkspinbutton.c @@ -998,6 +998,10 @@ gtk_spin_button_draw_arrow (GtkSpinButton *spin_button, gtk_style_context_save (context); gtk_style_context_add_class (context, GTK_STYLE_CLASS_BUTTON); + if (arrow_type == GTK_ARROW_UP) + gtk_style_context_add_class (context, GTK_STYLE_CLASS_TOP); + else + gtk_style_context_add_class (context, GTK_STYLE_CLASS_BOTTOM); priv = spin_button->priv; widget = GTK_WIDGET (spin_button);