elm_widget: do not set NULL as parent for object

When widget has no parent object, it breakes usage of a custom
Elm_Theme. This commit fixes it.

@fix
This commit is contained in:
Vyacheslav Reutskiy 2016-02-17 17:43:00 +02:00
parent 25a8ada79a
commit 0822ad2195
1 changed files with 1 additions and 1 deletions

View File

@ -1289,7 +1289,7 @@ _elm_widget_sub_object_del(Eo *obj, Elm_Widget_Smart_Data *sd, Evas_Object *sobj
}
ELM_WIDGET_DATA_GET(sobj, sdc);
sdc->parent_obj = NULL;
sdc->parent_obj = elm_widget_top_get(obj);
}
if (sd->resize_obj == sobj) sd->resize_obj = NULL;