summaryrefslogtreecommitdiff
path: root/src/lib/eo/eo_base.eo
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-06-20 10:37:02 +0100
committerTom Hacohen <tom@stosb.com>2016-06-20 18:02:00 +0100
commitd648eb5311585f7392d0290640ba133814b52589 (patch)
tree8a10a691218bfe1cbd08ba139a8feb22f23b9185 /src/lib/eo/eo_base.eo
parent508ba2e249526b79d503c5867e3095952499580a (diff)
downloadefl-d648eb5311585f7392d0290640ba133814b52589.tar.gz
Eo event callbacks: Change the way callbacks are stopped.
Instead of using the return value, we now use eo_event_callback_stop() to stop calling other callbacks.
Diffstat (limited to 'src/lib/eo/eo_base.eo')
-rw-r--r--src/lib/eo/eo_base.eo9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/eo/eo_base.eo b/src/lib/eo/eo_base.eo
index 204c57bbee..d4e3bd655b 100644
--- a/src/lib/eo/eo_base.eo
+++ b/src/lib/eo/eo_base.eo
@@ -351,6 +351,15 @@ abstract Eo.Base ()
$true otherwise
]]
}
+ event_callback_stop {
+ [[Stop the current callback call.
+
+ This stops the current callback call. Any other callbacks for the
+ current event will not be called. This is useful when you want to
+ filter out events. You just add higher priority events and call this
+ on certain conditions to block a certain event.
+ ]]
+ }
event_callback_forwarder_add {
[[Add an event callback forwarder for an event and an object.]]
params {