forked from enlightenment/efl
eo: little micro optimization.
This commit is contained in:
parent
c435968f69
commit
cc012b754c
|
@ -314,14 +314,14 @@ _eo_callbacks_clear(Private_Data *pd)
|
||||||
{
|
{
|
||||||
Eo_Callback_Description *cb = NULL;
|
Eo_Callback_Description *cb = NULL;
|
||||||
|
|
||||||
/* Abort if we are currently walking the list. */
|
|
||||||
if (pd->walking_list > 0)
|
|
||||||
return;
|
|
||||||
|
|
||||||
/* If there are no deletions waiting. */
|
/* If there are no deletions waiting. */
|
||||||
if (!pd->deletions_waiting)
|
if (!pd->deletions_waiting)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
/* Abort if we are currently walking the list. */
|
||||||
|
if (pd->walking_list > 0)
|
||||||
|
return;
|
||||||
|
|
||||||
pd->deletions_waiting = EINA_FALSE;
|
pd->deletions_waiting = EINA_FALSE;
|
||||||
|
|
||||||
for (cb = pd->callbacks ; cb ; )
|
for (cb = pd->callbacks ; cb ; )
|
||||||
|
@ -501,20 +501,19 @@ _ev_cb_call(Eo *obj_id, void *class_data, va_list *list)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
if (cb->items.item.desc != desc)
|
||||||
|
continue;
|
||||||
if ((!cb->items.item.desc
|
if ((!cb->items.item.desc
|
||||||
|| !cb->items.item.desc->unfreezable) &&
|
|| !cb->items.item.desc->unfreezable) &&
|
||||||
(event_freeze_count || pd->event_freeze_count))
|
(event_freeze_count || pd->event_freeze_count))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (cb->items.item.desc == desc)
|
/* Abort callback calling if the func says so. */
|
||||||
|
if (!cb->items.item.func((void *) cb->func_data, obj_id, desc,
|
||||||
|
(void *) event_info))
|
||||||
{
|
{
|
||||||
/* Abort callback calling if the func says so. */
|
if (ret) *ret = EINA_FALSE;
|
||||||
if (!cb->items.item.func((void *) cb->func_data, obj_id, desc,
|
goto end;
|
||||||
(void *) event_info))
|
|
||||||
{
|
|
||||||
if (ret) *ret = EINA_FALSE;
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue