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
This commit is contained in:
Thiep Ha 2015-05-22 03:35:47 +09:00 committed by Daniel Juyung Seo
parent 1488595c1e
commit c5014981be
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ _new_window_add(Elm_Fileselector_Button_Data *sd)
static Evas_Object *
_parent_win_get(Evas_Object *obj)
{
while (eo_isa(obj, ELM_WIN_CLASS))
while (!eo_isa(obj, ELM_WIN_CLASS))
obj = elm_object_parent_widget_get(obj);
return obj;