efl_ui_focus_manager_sub: apply new event calling convention

Summary: ref T7758

Reviewers: cedric, zmike, segfaultxavi

Reviewed By: zmike

Subscribers: #reviewers, #committers

Tags: #efl

Maniphest Tasks: T7758

Differential Revision: https://phab.enlightenment.org/D8405
This commit is contained in:
Marcel Hollerbach 2019-03-19 16:31:34 -04:00 committed by Mike Blumenkrantz
parent 11003bcae3
commit e4e14f50db
2 changed files with 11 additions and 5 deletions

View File

@ -1950,19 +1950,24 @@ _efl_ui_focus_manager_calc_efl_ui_focus_manager_dirty_logic_freeze(Eo *obj, Efl_
{
pd->freeze ++;
if (pd->freeze == 1)
efl_event_callback_call(obj, EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED, (void*)EINA_TRUE);
}
{
Eina_Bool event_info = EINA_TRUE;
efl_event_callback_call(obj, EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED, &event_info);
}
}
EOLIAN static void
_efl_ui_focus_manager_calc_efl_ui_focus_manager_dirty_logic_unfreeze(Eo *obj, Efl_Ui_Focus_Manager_Calc_Data *pd)
{
pd->freeze --;
if (!pd->freeze)
efl_event_callback_call(obj, EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED, (void*)EINA_FALSE);
{
Eina_Bool event_info = EINA_FALSE;
efl_event_callback_call(obj, EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED, &event_info);
}
}
#define EFL_UI_FOCUS_MANAGER_CALC_EXTRA_OPS \
EFL_OBJECT_OP_FUNC(efl_dbg_info_get, _efl_ui_focus_manager_calc_efl_object_dbg_info_get)

View File

@ -122,7 +122,8 @@ _redirect_changed_cb(void *data, const Efl_Event *ev EINA_UNUSED)
static void
_freeze_changed_cb(void *data, const Efl_Event *ev EINA_UNUSED)
{
if (ev->info)
Eina_Bool *val = ev->info;
if (*val)
{
efl_ui_focus_manager_dirty_logic_freeze(data);
}