scalebutton: 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:47:13 +01:00 committed by Matthias Clasen
parent 939ed582ec
commit 377eb396a3

View File

@ -415,6 +415,8 @@ gtk_scale_button_init (GtkScaleButton *button)
/* the scale */
priv->scale = gtk_scale_button_scale_new (button);
gtk_container_add (GTK_CONTAINER (priv->box), priv->scale);
gtk_widget_add_events (GTK_WIDGET (button), GDK_SCROLL_MASK);
}
static GObject *