gesture: Add GTK_PHASE_TARGET
This phase is meant to run in the default widget handlers, as opposed to externally as in the bubble/capture phase. This will be most usually the expected phase for every controller replacing code in event handlers in GTK+, just so invocation and triggering order is kept unaltered.
This commit is contained in:
@ -1530,7 +1530,7 @@ gtk_gesture_attach (GtkGesture *gesture,
|
||||
GtkWidget *widget;
|
||||
|
||||
g_return_if_fail (GTK_IS_GESTURE (gesture));
|
||||
g_return_if_fail (phase >= GTK_PHASE_NONE && phase <= GTK_PHASE_BUBBLE);
|
||||
g_return_if_fail (phase >= GTK_PHASE_NONE && phase <= GTK_PHASE_TARGET);
|
||||
|
||||
widget = gtk_event_controller_get_widget (GTK_EVENT_CONTROLLER (gesture));
|
||||
_gtk_widget_add_controller (widget, GTK_EVENT_CONTROLLER (gesture), phase);
|
||||
|
Reference in New Issue
Block a user