]> Pileus Git - ~andy/gtk/commitdiff
Add symbolic constants for event emission control
authorEmmanuele Bassi <ebassi@gnome.org>
Tue, 5 Oct 2010 13:07:32 +0000 (14:07 +0100)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Tue, 3 Jan 2012 12:58:43 +0000 (12:58 +0000)
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

docs/reference/gdk/gdk3-sections.txt
gdk/gdkevents.h

index d393f763d8aa76e848adf147ab473bc89ec51724..d5deb42aa21657f6cf2bb003271f016b0ee9018d 100644 (file)
@@ -757,6 +757,8 @@ GdkEventMask
 GDK_CURRENT_TIME
 GDK_PRIORITY_EVENTS
 GDK_PRIORITY_REDRAW
+GDK_EVENT_PROPAGATE
+GDK_EVENT_STOP
 
 <SUBSECTION>
 gdk_events_pending
index a1baac1d75a7bd7991c19e25b553d0295f7863a2..d8a1f761d8c24bf936d0cb64dcc13a611a1216bc 100644 (file)
@@ -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;