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:
parent
1488595c1e
commit
c5014981be
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue