scrolledwindow: remove a leftover event type check

We want the capture_button_press function to capture touch begin
events as well.
This commit is contained in:
Matthias Clasen
2012-02-29 20:07:03 -05:00
parent e5d6191466
commit d22e419749

View File

@@ -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;