summaryrefslogtreecommitdiff
path: root/gtk/gtkmain.c
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2017-09-15 17:34:06 +0200
committerCarlos Garnacho <carlosg@gnome.org>2017-09-19 18:40:50 +0200
commita9988e18b0a3eb63409b87dfab53efc0b6f10b91 (patch)
tree3fac6958cc695dc70b22ffcd44ead063ce9b314a /gtk/gtkmain.c
parent403a724164e25ec7e2c4a853b561609d12f7a1b8 (diff)
downloadgtk+-a9988e18b0a3eb63409b87dfab53efc0b6f10b91.tar.gz
gtk: Remove 2BUTTON and 3BUTTON events and event types
Those should be interpreted by widget-local gestures, not guessed at a high level with no notions of the specific context. Users will want GtkGestureMultiPress to replace these events.
Diffstat (limited to 'gtk/gtkmain.c')
-rw-r--r--gtk/gtkmain.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c
index b28df87258..7162719aa7 100644
--- a/gtk/gtkmain.c
+++ b/gtk/gtkmain.c
@@ -1148,8 +1148,6 @@ rewrite_event_for_window (GdkEvent *event,
&event->scroll.x, &event->scroll.y);
break;
case GDK_BUTTON_PRESS:
- case GDK_2BUTTON_PRESS:
- case GDK_3BUTTON_PRESS:
case GDK_BUTTON_RELEASE:
rewrite_events_translate (event->any.window,
new_window,
@@ -1217,8 +1215,6 @@ rewrite_event_for_grabs (GdkEvent *event)
{
case GDK_SCROLL:
case GDK_BUTTON_PRESS:
- case GDK_2BUTTON_PRESS:
- case GDK_3BUTTON_PRESS:
case GDK_BUTTON_RELEASE:
case GDK_MOTION_NOTIFY:
case GDK_PROXIMITY_IN:
@@ -1809,8 +1805,6 @@ gtk_main_do_event (GdkEvent *event)
/* else fall through */
case GDK_SCROLL:
case GDK_BUTTON_PRESS:
- case GDK_2BUTTON_PRESS:
- case GDK_3BUTTON_PRESS:
case GDK_TOUCH_BEGIN:
case GDK_MOTION_NOTIFY:
case GDK_BUTTON_RELEASE:
@@ -1852,8 +1846,6 @@ gtk_main_do_event (GdkEvent *event)
if (event->type == GDK_ENTER_NOTIFY
|| event->type == GDK_LEAVE_NOTIFY
|| event->type == GDK_BUTTON_PRESS
- || event->type == GDK_2BUTTON_PRESS
- || event->type == GDK_3BUTTON_PRESS
|| event->type == GDK_KEY_PRESS
|| event->type == GDK_DRAG_ENTER
|| event->type == GDK_GRAB_BROKEN