summaryrefslogtreecommitdiff
path: root/gdk/gdkevents.h
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2010-10-05 14:07:32 +0100
committerEmmanuele Bassi <ebassi@linux.intel.com>2012-01-03 12:58:43 +0000
commitc62a1fd522e5e1ffe3ae3b40f83bcc78e4b00a81 (patch)
tree5d949164585031db05d98e645088fefd2f4f2965 /gdk/gdkevents.h
parentf0b8fc69e8af227928a19c0e1ba4a5fb6f809c43 (diff)
downloadgtk+-c62a1fd522e5e1ffe3ae3b40f83bcc78e4b00a81.tar.gz
Add symbolic constants for event emission control
Similar to https://bugzilla.gnome.org/show_bug.cgi?id=631413 in GLib, GTK+ should have symbolic constants for controlling the event handling instead of a mere boolean value. The GDK_EVENT_PROPAGATE and GDK_EVENT_STOP constants map to FALSE and TRUE respectively. https://bugzilla.gnome.org/show_bug.cgi?id=631414
Diffstat (limited to 'gdk/gdkevents.h')
-rw-r--r--gdk/gdkevents.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/gdk/gdkevents.h b/gdk/gdkevents.h
index a1baac1d75..d8a1f761d8 100644
--- a/gdk/gdkevents.h
+++ b/gdk/gdkevents.h
@@ -74,6 +74,25 @@ G_BEGIN_DECLS
*/
#define GDK_PRIORITY_REDRAW (G_PRIORITY_HIGH_IDLE + 20)
+/**
+ * GDK_EVENT_PROPAGATE:
+ *
+ * Use this macro as the return value for continuing the propagation of
+ * an event handler.
+ *
+ * Since: 3.4
+ */
+#define GDK_EVENT_PROPAGATE (FALSE)
+
+/**
+ * GDK_EVENT_STOP:
+ *
+ * Use this macro as the return value for stopping the propagation of
+ * an event handler.
+ *
+ * Since: 3.4
+ */
+#define GDK_EVENT_STOP (TRUE)
typedef struct _GdkEventAny GdkEventAny;
typedef struct _GdkEventExpose GdkEventExpose;