From 87b7103db1650c29a869303ee082033edf4fd561 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 18 Jul 2014 19:39:56 -0400 Subject: [PATCH] GtkSpinButton: Set orientable style classes initially This was an omission, horizontal/vertical would only be set when the orientation is changed. --- gtk/gtkspinbutton.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gtk/gtkspinbutton.c b/gtk/gtkspinbutton.c index 38dd76b0db..70119b57b0 100644 --- a/gtk/gtkspinbutton.c +++ b/gtk/gtkspinbutton.c @@ -700,6 +700,7 @@ gtk_spin_button_init (GtkSpinButton *spin_button) context = gtk_widget_get_style_context (GTK_WIDGET (spin_button)); gtk_style_context_add_class (context, GTK_STYLE_CLASS_SPINBUTTON); + _gtk_orientable_set_style_classes (GTK_ORIENTABLE (spin_button)); gtk_widget_add_events (GTK_WIDGET (spin_button), GDK_SCROLL_MASK);