]> Pileus Git - ~andy/gtk/commitdiff
spinbutton: Set GDK_SCROLL_MASK explicitly
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 23 Feb 2012 13:46:47 +0000 (14:46 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 1 Mar 2012 21:29:00 +0000 (16:29 -0500)
selecting for button press/release doesn't suffice anymore to
get scroll events.

gtk/gtkspinbutton.c

index 020d9fb22377eb3c5a6765436b838946d1c04c54..e3caddff84bd14549b2f44a79c57bf7b8d599df8 100644 (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