if bindings context is 'any' then action is triggerd twice, for container and for zone. maybe not the best solution but otherwise one would have to create three bindings to get the 'any' behaviour

SVN revision: 48499
This commit is contained in:
Hannes Janetzek 2010-05-01 13:26:10 +00:00
parent 5593cdfe91
commit b859ec06a3
1 changed files with 2 additions and 1 deletions

View File

@ -926,7 +926,8 @@ _e_bindings_wheel_free(E_Binding_Wheel *bind)
static int
_e_bindings_context_match(E_Binding_Context bctxt, E_Binding_Context ctxt)
{
if (bctxt == E_BINDING_CONTEXT_ANY) return 1;
if (bctxt == E_BINDING_CONTEXT_ANY &&
!(ctxt == E_BINDING_CONTEXT_ZONE)) return 1;
if (ctxt == E_BINDING_CONTEXT_UNKNOWN) return 0;
if (bctxt == ctxt) return 1;
return 0;