[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: Wed, 23 Nov 2011 23:12:38 +0000 (UTC)
commit c6e6f75874b8ef9db985acc022b4c291c50f5155
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 94bec80..ee71784 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -7188,7 +7188,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]