summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiep Ha <thiepha@gmail.com>2015-05-22 03:35:47 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2015-05-22 03:35:47 +0900
commita91801a5c6c2b89e970d53817a9c8b42e2335518 (patch)
tree52fd4f976336e9bfd319ddaab91239fd0f61c0ea
parent5099f9eeec52ae71746ede0fd3ff375dc0e83aef (diff)
fileselector button: correct window parent finding
Summary: Fileselector button fails to run in inwin mode. It is caused by incorrect window parent finding. This patch corrects the window parent finding. @fix Test Plan: run FileSelector Button, toggle Inwin mode option to on, eo gives error and nothing is shown. Reviewers: Hermet, seoz Reviewed By: seoz Differential Revision: https://phab.enlightenment.org/D2552
-rw-r--r--src/lib/elc_fileselector_button.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elc_fileselector_button.c b/src/lib/elc_fileselector_button.c
index fb64c68de..b62b684cb 100644
--- a/src/lib/elc_fileselector_button.c
+++ b/src/lib/elc_fileselector_button.c
@@ -103,7 +103,7 @@ _new_window_add(Elm_Fileselector_Button_Data *sd)
103static Evas_Object * 103static Evas_Object *
104_parent_win_get(Evas_Object *obj) 104_parent_win_get(Evas_Object *obj)
105{ 105{
106 while (eo_isa(obj, ELM_WIN_CLASS)) 106 while (!eo_isa(obj, ELM_WIN_CLASS))
107 obj = elm_object_parent_widget_get(obj); 107 obj = elm_object_parent_widget_get(obj);
108 108
109 return obj; 109 return obj;