[gtk+/touchscreens: 27/67] scrolledwindow: Enable kinetic scrolling by default
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/touchscreens: 27/67] scrolledwindow: Enable kinetic scrolling by default
- Date: Thu, 29 Dec 2011 00:39:18 +0000 (UTC)
commit 5b9c3158d281c33b6d18bed91040f33bdacf3ff8
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 f99a266..a19c547 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]