[gtk+] GtkSpinButton: Set orientable style classes initially



commit 87b7103db1650c29a869303ee082033edf4fd561
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Jul 18 19:39:56 2014 -0400

    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 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkspinbutton.c b/gtk/gtkspinbutton.c
index 38dd76b..70119b5 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);
 


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