[gtk+/multitouch: 31/124] scrolledwindow: bypass kinetic scrolling if no scrollbars are shown



commit c46f22fed372ffa056e318a2378a16aa776379f0
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 45939a2..5f42966 100644
--- a/gtk/gtkscrolledwindow.c
+++ b/gtk/gtkscrolledwindow.c
@@ -2960,6 +2960,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]