Check for a binding status of -1 so that we skip comparison with

event_status (if needed).



SVN revision: 49320
This commit is contained in:
Christopher Michael 2010-05-30 02:23:06 +00:00
parent d1de07e67b
commit 8dbd555663
1 changed files with 7 additions and 1 deletions

View File

@ -924,8 +924,14 @@ e_bindings_acpi_find(E_Binding_Context ctxt, E_Object *obj, E_Event_Acpi *ev, E_
EINA_LIST_FOREACH(acpi_bindings, l, bind)
{
if ((bind->type == ev->type) && (bind->status == ev->status))
if (bind->type == ev->type)
{
/* if binding status is -1, then we don't compare event status */
if (bind->status != -1)
{
/* binding status is set to something, compare event status */
if (bind->status != ev->status) continue;
}
if (_e_bindings_context_match(bind->ctxt, ctxt))
{
E_Action *act;