spinbutton: Set GDK_SCROLL_MASK explicitly

selecting for button press/release doesn't suffice anymore to
get scroll events.
This commit is contained in:
Carlos Garnacho 2012-02-23 14:46:47 +01:00 committed by Matthias Clasen
parent 2927218a26
commit 939ed582ec

View File

@ -679,6 +679,8 @@ 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_widget_add_events (GTK_WIDGET (spin_button), GDK_SCROLL_MASK);
}
static void