efl_ui_focus_composition: do not call legacy API here

Summary:
calling this on a object that is legacy is not going to work. And will
print a error. This will make new widgets less verbose.

ref T7213
Depends on D6755

Reviewers: YOhoho, zmike, CHAN

Reviewed By: YOhoho

Subscribers: cedric, #committers, zmike

Tags: #efl

Maniphest Tasks: T7213

Differential Revision: https://phab.enlightenment.org/D6756
This commit is contained in:
Marcel Hollerbach 2018-08-08 09:39:15 -04:00 committed by Mike Blumenkrantz
parent 1edf1295e8
commit 08b9eeef28
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ _state_apply(Eo *obj, Efl_Ui_Focus_Composition_Data *pd)
Efl_Ui_Focus_Manager *manager;
//Legacy code compatibility, only update the custom chain of elements if legacy was NOT messing with it.
if (elm_object_focus_custom_chain_get(obj)) return;
if (elm_widget_is_legacy(obj) && elm_object_focus_custom_chain_get(obj)) return;
if (pd->custom_manager)
manager = pd->custom_manager;