[gtk+/smooth-scrolling-for-3.4: 20/20] scalebutton: Set GDK_SCROLL_MASK explicitly
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/smooth-scrolling-for-3.4: 20/20] scalebutton: Set GDK_SCROLL_MASK explicitly
- Date: Thu, 23 Feb 2012 13:50:53 +0000 (UTC)
commit 3d1f0ee517a020db228b76cb683c67b1ee2e4b5b
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Feb 23 14:47:13 2012 +0100
scalebutton: Set GDK_SCROLL_MASK explicitly
selecting for button press/release doesn't suffice anymore to
get scroll events.
gtk/gtkscalebutton.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkscalebutton.c b/gtk/gtkscalebutton.c
index 54765e6..a72b315 100644
--- a/gtk/gtkscalebutton.c
+++ b/gtk/gtkscalebutton.c
@@ -417,6 +417,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 *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]