jpeg pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=f6ba674cd8ada4e018fd205dab2e877e9a19a820
commit f6ba674cd8ada4e018fd205dab2e877e9a19a820 Author: YeongJong Lee <[email protected]> Date: Wed Jan 24 15:36:08 2018 +0900 efl_ui_win: Avoid a call to NULL Summary: parent_get and smart_parent_get are called in parent_widget_get this also remove the duplicated code Reviewers: jpeg Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D5757 --- src/lib/elementary/efl_ui_win.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c index fd2eea0427..38be004df3 100644 --- a/src/lib/elementary/efl_ui_win.c +++ b/src/lib/elementary/efl_ui_win.c @@ -2603,16 +2603,8 @@ _elm_win_focus_target_get(Evas_Object *obj) { if (!elm_widget_highlight_ignore_get(o)) break; - o = elm_widget_parent_get(o); - if (!o) - o = evas_object_smart_parent_get(o); - } - else - { - o = elm_widget_parent_widget_get(o); - if (!o) - o = evas_object_smart_parent_get(o); } + o = elm_widget_parent_widget_get(o); } while (o); --
