efl_ui_focus_object: apply new event calling convention

Summary:
ref T7758
Depends on D8408

Reviewers: cedric, zmike, segfaultxavi

Reviewed By: zmike

Subscribers: #reviewers, #committers

Tags: #efl

Maniphest Tasks: T7758

Differential Revision: https://phab.enlightenment.org/D8409
This commit is contained in:
Marcel Hollerbach 2019-03-19 16:31:55 -04:00 committed by Mike Blumenkrantz
parent 60384a4d40
commit 6dec272d31
2 changed files with 9 additions and 3 deletions

View File

@ -1566,10 +1566,16 @@ _efl_ui_focus_manager_calc_efl_ui_focus_manager_manager_focus_set(Eo *obj, Efl_U
}
while (eina_array_count(chain) > 1)
efl_event_callback_call(eina_array_pop(chain), EFL_UI_FOCUS_OBJECT_EVENT_CHILD_FOCUS_CHANGED , (void*)EINA_TRUE);
{
Eina_Bool child_focus_changed = EINA_TRUE;
efl_event_callback_call(eina_array_pop(chain), EFL_UI_FOCUS_OBJECT_EVENT_CHILD_FOCUS_CHANGED , &child_focus_changed);
}
while (eina_array_count(old_chain) > 1)
efl_event_callback_call(eina_array_pop(old_chain), EFL_UI_FOCUS_OBJECT_EVENT_CHILD_FOCUS_CHANGED, (void*)EINA_FALSE);
{
Eina_Bool child_focus_changed = EINA_FALSE;
efl_event_callback_call(eina_array_pop(old_chain), EFL_UI_FOCUS_OBJECT_EVENT_CHILD_FOCUS_CHANGED, &child_focus_changed);
}
end:
eina_array_free(old_chain);

View File

@ -24,7 +24,7 @@ _efl_ui_focus_object_focus_set(Eo *obj, Efl_Ui_Focus_Object_Data *pd, Eina_Bool
parent = efl_ui_focus_object_focus_parent_get(obj);
if (parent)
efl_ui_focus_object_child_focus_set(parent, focus);
efl_event_callback_call(obj, EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_CHANGED , (void*) (uintptr_t) focus);
efl_event_callback_call(obj, EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_CHANGED , &focus);
}
EOLIAN static Eina_Bool