forked from AuroraMiddleware/gtk
gtk: Add minimal handling of pad events
No real handling is yet performed, to be done through a GdkEventController https://bugzilla.gnome.org/show_bug.cgi?id=770026
This commit is contained in:
parent
b8a77d4da3
commit
3a6d0ff2ab
@ -1875,6 +1875,11 @@ gtk_main_do_event (GdkEvent *event)
|
||||
case GDK_TOUCH_CANCEL:
|
||||
case GDK_TOUCHPAD_SWIPE:
|
||||
case GDK_TOUCHPAD_PINCH:
|
||||
case GDK_PAD_BUTTON_PRESS:
|
||||
case GDK_PAD_BUTTON_RELEASE:
|
||||
case GDK_PAD_RING:
|
||||
case GDK_PAD_STRIP:
|
||||
case GDK_PAD_GROUP_MODE:
|
||||
if (!_gtk_propagate_captured_event (grab_widget, event, topmost_widget))
|
||||
gtk_propagate_event (grab_widget, event);
|
||||
break;
|
||||
|
@ -7617,6 +7617,11 @@ gtk_widget_event_internal (GtkWidget *widget,
|
||||
case GDK_TOUCHPAD_PINCH:
|
||||
return_val |= _gtk_widget_run_controllers (widget, event, GTK_PHASE_BUBBLE);
|
||||
/* Fall through */
|
||||
case GDK_PAD_BUTTON_PRESS:
|
||||
case GDK_PAD_BUTTON_RELEASE:
|
||||
case GDK_PAD_RING:
|
||||
case GDK_PAD_STRIP:
|
||||
case GDK_PAD_GROUP_MODE:
|
||||
case GDK_EXPOSE:
|
||||
case GDK_NOTHING:
|
||||
signal_num = -1;
|
||||
|
Loading…
Reference in New Issue
Block a user