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



commit 2d1d4755476b6579a2c65db54995ff69460bfac2
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 808a288..fd57b6e 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -7231,7 +7231,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]