diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2012-02-23 14:47:13 +0100 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2012-03-01 16:29:01 -0500 |
commit | 377eb396a36801da32d1e1cf01560871a3c07cda (patch) | |
tree | e771643521331df6f3373abf94aebf288070331e /gtk/gtkscalebutton.c | |
parent | 939ed582eca24cada58fdd9918ba7ed9f030652d (diff) | |
download | gtk+-377eb396a36801da32d1e1cf01560871a3c07cda.tar.gz |
scalebutton: Set GDK_SCROLL_MASK explicitly
selecting for button press/release doesn't suffice anymore to
get scroll events.
Diffstat (limited to 'gtk/gtkscalebutton.c')
-rw-r--r-- | gtk/gtkscalebutton.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkscalebutton.c b/gtk/gtkscalebutton.c index fa6c57f445..b91c6792cb 100644 --- a/gtk/gtkscalebutton.c +++ b/gtk/gtkscalebutton.c @@ -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 * |