[gtk+/multitouch-for-3.4: 18/89] scrolledwindow: bypass kinetic scrolling if no scrollbars are shown
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/multitouch-for-3.4: 18/89] scrolledwindow: bypass kinetic scrolling if no scrollbars are shown
- Date: Thu, 23 Feb 2012 12:27:26 +0000 (UTC)
commit fe43df223553c7fb816b4afb102f60c4347746a5
Author: Carlos Garnacho <carlosg gnome org>
Date: Sun Nov 6 19:13:56 2011 +0100
scrolledwindow: bypass kinetic scrolling if no scrollbars are shown
gtk/gtkscrolledwindow.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c
index 3996230..a89bb84 100644
--- a/gtk/gtkscrolledwindow.c
+++ b/gtk/gtkscrolledwindow.c
@@ -2867,6 +2867,10 @@ gtk_scrolled_window_button_press_event (GtkWidget *widget,
event = (GdkEventButton *)_event;
+ if (!priv->vscrollbar_visible &&
+ !priv->hscrollbar_visible)
+ return FALSE;
+
/* Check whether the button press is close to the previous one,
* take that as a shortcut to get the child widget handle events
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]