evas: do not override lifecycle by overriding efl_parent_set.

This commit is contained in:
Cedric Bail 2018-05-12 22:16:42 -07:00 committed by Cedric BAIL
parent 4479d035be
commit 429084e2fb
2 changed files with 0 additions and 18 deletions

View File

@ -596,7 +596,6 @@ abstract Efl.Canvas.Object (Efl.Object, Efl.Gfx.Entity, Efl.Gfx.Color, Efl.Gfx.S
Efl.Object.finalize;
Efl.Object.invalidate;
Efl.Object.destructor;
Efl.Object.parent { set; }
Efl.Object.provider_find;
Efl.Object.debug_name_override;
Efl.Gfx.Entity.visible { get; set; }

View File

@ -1016,23 +1016,6 @@ evas_object_ref_get(const Evas_Object *eo_obj)
return obj->ref;
}
EOLIAN static void
_efl_canvas_object_efl_object_parent_set(Eo *obj, Evas_Object_Protected_Data *pd, Eo *parent)
{
// This look very bad, seems like we are trying to bypass Eo refcounting somehow
// to keep the object "usable" event when parent get set to NULL
if (pd->legacy.ctor)
{
if (pd->ref > 0 && !efl_invalidated_get(obj))
{
pd->del_ref = EINA_TRUE;
return ;
}
}
efl_parent_set(efl_super(obj, MY_CLASS), parent);
}
EAPI void
evas_object_del(Evas_Object *obj)
{