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



commit 6934c0f045b70393a92dbf51618f72bf82555251
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 ef2e4cc..300274a 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]