discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=08b9eeef281b0a42de83d1467d83e37b68a9567b

commit 08b9eeef281b0a42de83d1467d83e37b68a9567b
Author: Marcel Hollerbach <[email protected]>
Date:   Wed Aug 8 09:39:15 2018 -0400

    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
---
 src/lib/elementary/efl_ui_focus_composition.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/elementary/efl_ui_focus_composition.c 
b/src/lib/elementary/efl_ui_focus_composition.c
index a964146862..a35e71f99a 100644
--- a/src/lib/elementary/efl_ui_focus_composition.c
+++ b/src/lib/elementary/efl_ui_focus_composition.c
@@ -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;

-- 


Reply via email to