[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: Mon, 5 Dec 2011 01:18:18 +0000 (UTC)
commit 23812347ba4887d1f6074ff107e7ad6ab1b70155
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 5e9a8f7..4f21867 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -7199,7 +7199,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]