aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/elementary/efl_ui_win.c
diff options
context:
space:
mode:
authorYeongJong Lee <yj34.lee@samsung.com>2018-01-24 15:36:08 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2018-01-24 15:36:08 +0900
commitf6ba674cd8ada4e018fd205dab2e877e9a19a820 (patch)
treec89a3f1b9f0b2ad7ec0d262724bbcf486554e087 /src/lib/elementary/efl_ui_win.c
parenteina: Make return doxygen consistent (diff)
downloadefl-f6ba674cd8ada4e018fd205dab2e877e9a19a820.tar.gz
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
Diffstat (limited to 'src/lib/elementary/efl_ui_win.c')
-rw-r--r--src/lib/elementary/efl_ui_win.c10
1 files changed, 1 insertions, 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);