[gtk+/multitouch: 26/27] gtk, pah: Handle press-and-hold on touch devices
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/multitouch: 26/27] gtk, pah: Handle press-and-hold on touch devices
- Date: Tue, 13 Dec 2011 19:00:03 +0000 (UTC)
commit bd19d7033b686fb81b09fa439bd133cc0dd62753
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 b2056ce..6ffb08d 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -7212,7 +7212,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]