diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-04-29 02:19:44 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-05-28 20:25:13 +0000 |
commit | 2606ca0bd12335becf203d0c7c56d070fc2fdba1 (patch) | |
tree | 9d536d6e9386ddeced54d229e606eba66cd0bc95 /gtk/gtkeventcontroller.h | |
parent | 54662f4ca041c9e232216ed18a4eeea498be7a4c (diff) | |
download | gtk+-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.h | 6 |
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__ */ |