eo: propagate invalidate before destroying the link to the parent.

This commit is contained in:
Cedric Bail 2018-05-09 20:03:06 -07:00 committed by Cedric BAIL
parent 91cd4f7c0c
commit 3a1fe14742
1 changed files with 5 additions and 2 deletions

View File

@ -709,6 +709,11 @@ _efl_object_parent_set(Eo *obj, Efl_Object_Data *pd, Eo *parent_id)
goto err_impossible;
}
if (!parent_id)
{
if (prev_parent) _efl_invalidate(eo_obj);
}
if (pd->parent)
{
Efl_Object_Data *old_parent_pd = efl_data_scope_get(pd->parent,
@ -749,8 +754,6 @@ _efl_object_parent_set(Eo *obj, Efl_Object_Data *pd, Eo *parent_id)
}
else
{
if (prev_parent) _efl_invalidate(eo_obj);
pd->parent = NULL;
eo_obj->parent = EINA_FALSE;