[gtk+/multitouch: 24/33] gtk, pah: Handle press-and-hold on touch devices



commit 6b6ca222dd8987a61fa62714ec110c07cf7333d2
Author: Carlos Garnacho <carlosg gnome org>
Date:   Wed Nov 23 21:32:29 2011 +0100

    gtk,pah: Handle press-and-hold on touch devices

 gtk/gtkwidget.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 2e0535a..ea4f39d 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -7229,7 +7229,8 @@ _gtk_widget_press_and_hold_check_start (GtkWidget      *widget,
 {
   PressAndHoldData *data = gtk_widget_peek_press_and_hold_data (widget);
 
-  if (event->type != GDK_BUTTON_PRESS)
+  if (event->type != GDK_BUTTON_PRESS &&
+      event->type != GDK_TOUCH_PRESS)
     return FALSE;
 
   /* Press and hold already in process? */



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