[gtk+/touch-for-3.4] scrolledwindow: remove a leftover event type check



commit d22e419749cea8ccfc5954f2b246b409f8058e0d
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Feb 29 20:07:03 2012 -0500

    scrolledwindow: remove a leftover event type check
    
    We want the capture_button_press function to capture touch begin
    events as well.

 gtk/gtkscrolledwindow.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c
index e079993..90af0d5 100644
--- a/gtk/gtkscrolledwindow.c
+++ b/gtk/gtkscrolledwindow.c
@@ -2693,9 +2693,6 @@ gtk_scrolled_window_captured_button_press (GtkWidget *widget,
   gdouble x_root, y_root;
   guint button;
 
-  if (event->type != GDK_BUTTON_PRESS)
-    return FALSE;
-
   /* If scrollbars are not visible, we don't do kinetic scrolling */
   if (!priv->vscrollbar_visible && !priv->hscrollbar_visible)
     return FALSE;



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