summaryrefslogtreecommitdiff
path: root/gtk/gtkwidget.h
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2014-02-26 12:50:31 +0100
committerCarlos Garnacho <carlosg@gnome.org>2014-05-23 19:54:22 +0200
commitf1bb0283dda663c0a7c9825a576115c73e8e4c88 (patch)
treea64aa003f5e57a6a02a64887e311b6f22f9af677 /gtk/gtkwidget.h
parentd0da82fed64b61dcf3476516464794598ca99e69 (diff)
downloadgtk+-f1bb0283dda663c0a7c9825a576115c73e8e4c88.tar.gz
widget: Hook GtkEventController to widget event processing.
A controller can be optionally hooked on the capture or the bubble phase, so the controller will automatically receive and handle events as they arrive without further interaction.
Diffstat (limited to 'gtk/gtkwidget.h')
-rw-r--r--gtk/gtkwidget.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h
index 089420a873..29d0ab356f 100644
--- a/gtk/gtkwidget.h
+++ b/gtk/gtkwidget.h
@@ -33,6 +33,7 @@
#include <gtk/gtkaccelgroup.h>
#include <gtk/gtkborder.h>
#include <gtk/gtktypes.h>
+#include <gtk/gtkeventcontroller.h>
#include <atk/atk.h>
G_BEGIN_DECLS
@@ -1469,6 +1470,17 @@ void gtk_widget_class_bind_template_child_full (GtkWidgetClass *
gboolean internal_child,
gssize struct_offset);
+GDK_AVAILABLE_IN_3_14
+void gtk_widget_add_controller (GtkWidget *widget,
+ GtkEventController *controller,
+ GtkPropagationPhase phase);
+GDK_AVAILABLE_IN_3_14
+void gtk_widget_remove_controller (GtkWidget *widget,
+ GtkEventController *controller);
+GDK_AVAILABLE_IN_3_14
+GList * gtk_widget_list_controllers (GtkWidget *widget,
+ GtkPropagationPhase phase);
+
G_END_DECLS
#endif /* __GTK_WIDGET_H__ */