summaryrefslogtreecommitdiff
path: root/gtk/gtkeventcontroller.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-04-29 02:19:44 +0000
committerMatthias Clasen <mclasen@redhat.com>2019-05-28 20:25:13 +0000
commit2606ca0bd12335becf203d0c7c56d070fc2fdba1 (patch)
tree9d536d6e9386ddeced54d229e606eba66cd0bc95 /gtk/gtkeventcontroller.h
parent54662f4ca041c9e232216ed18a4eeea498be7a4c (diff)
downloadgtk+-2606ca0bd12335becf203d0c7c56d070fc2fdba1.tar.gz
Introduce event controller propagation limits
Limit event handlers by default to only handle events targeting the same surface as their widget.
Diffstat (limited to 'gtk/gtkeventcontroller.h')
-rw-r--r--gtk/gtkeventcontroller.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/gtkeventcontroller.h b/gtk/gtkeventcontroller.h
index f2f2b6a2b0..963f440e6a 100644
--- a/gtk/gtkeventcontroller.h
+++ b/gtk/gtkeventcontroller.h
@@ -59,6 +59,12 @@ GDK_AVAILABLE_IN_ALL
void gtk_event_controller_set_propagation_phase (GtkEventController *controller,
GtkPropagationPhase phase);
+GDK_AVAILABLE_IN_ALL
+GtkPropagationLimit gtk_event_controller_get_propagation_limit (GtkEventController *controller);
+
+GDK_AVAILABLE_IN_ALL
+void gtk_event_controller_set_propagation_limit (GtkEventController *controller,
+ GtkPropagationLimit limit);
G_END_DECLS
#endif /* __GTK_EVENT_CONTROLLER_H__ */