mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 21:51:08 +00:00
GtkSpinButton: Set orientable style classes initially
This was an omission, horizontal/vertical would only be set when the orientation is changed.
This commit is contained in:
parent
b5ee9da924
commit
87b7103db1
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user