add bool return for mouse-based E_Action callbacks

Desktop / Enlightenment / Enlightenment - Mike Blumenkrantz [osg.samsung.com] - 3 February 2016 17:09 UTC

in many cases, a mouse action's callback will fail to execute as a result of multiple objects being under the pointer at the time of the event. in this case, the callback should be able to determine whether action callback processing should continue.

as an example, when attempting to execute an action which only activates for client objects, if the passed object is not a client then the callback should return false to indicate that it was not able to perform the action for the given object, allowing further actions to be attempted on this object

fe5d2e6 add bool return for mouse-based E_Action callbacks
src/bin/e_actions.c | 75 +++++++++++++++++++------------------
src/bin/e_actions.h | 6 +--
src/bin/e_bindings.c | 58 ++++++++++++++++++----------
src/modules/clock/e_mod_main.c | 3 +-
src/modules/tiling/e_mod_tiling.c | 18 +++++----
src/modules/winlist/e_mod_main.c | 18 +++++----
6 files changed, 101 insertions(+), 77 deletions(-)

Upstream: git.enlightenment.org


  • Share