[gtk+/multitouch: 27/124] scrolledwindow: Enable kinetic scrolling by default



commit ef8ede2dc3957c8278e7c020d727c7b04d98326f
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Nov 1 13:21:11 2011 +0100

    scrolledwindow: Enable kinetic scrolling by default

 gtk/gtkscrolledwindow.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c
index 6bc2bc2..fa9fd09 100644
--- a/gtk/gtkscrolledwindow.c
+++ b/gtk/gtkscrolledwindow.c
@@ -509,7 +509,7 @@ gtk_scrolled_window_class_init (GtkScrolledWindowClass *class)
                                    g_param_spec_boolean ("kinetic-scrolling",
                                                          P_("Kinetic Scrolling"),
                                                          P_("Enable kinetic scrolling mode."),
-                                                         FALSE,
+                                                         TRUE,
                                                          GTK_PARAM_READABLE | GTK_PARAM_WRITABLE));
   /**
    * GtkScrolledWindow::scroll-child:
@@ -613,6 +613,8 @@ gtk_scrolled_window_init (GtkScrolledWindow *scrolled_window)
   priv->deceleration_rate = 1.1f;
   priv->last_button_event_x_root = -TOUCH_BYPASS_CAPTURED_THRESHOLD;
   priv->last_button_event_y_root = -TOUCH_BYPASS_CAPTURED_THRESHOLD;
+
+  gtk_scrolled_window_set_kinetic_scrolling (scrolled_window, TRUE);
 }
 
 /**



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]