diff options
author | Tom Hacohen <tom@stosb.com> | 2016-06-20 10:37:02 +0100 |
---|---|---|
committer | Tom Hacohen <tom@stosb.com> | 2016-06-20 18:02:00 +0100 |
commit | d648eb5311585f7392d0290640ba133814b52589 (patch) | |
tree | 8a10a691218bfe1cbd08ba139a8feb22f23b9185 /src/lib/eo/eo_base.eo | |
parent | 508ba2e249526b79d503c5867e3095952499580a (diff) | |
download | efl-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.eo | 9 |
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 { |