elm_box: fix move to evas_object_box and avoid double-deletion.

We must clear the box before, otherwise on delete it will
automatically delete all existing children, which would be deleted
right after with sub-objects.



SVN revision: 43675
This commit is contained in:
Gustavo Sverzut Barbieri 2009-11-13 18:54:55 +00:00
parent a60ce4e74f
commit 7485ad2742
1 changed files with 1 additions and 0 deletions

View File

@ -43,6 +43,7 @@ static void
_del_hook(Evas_Object *obj)
{
Widget_Data *wd = elm_widget_data_get(obj);
evas_object_box_remove_all(wd->box, 0);
evas_object_del(wd->box);
free(wd);
}