forked from enlightenment/efl
evas: Evas_Object_VG should always create a root node.
This commit is contained in:
parent
78bf41b223
commit
97714021d1
|
@ -102,7 +102,7 @@ _evas_vg_root_node_get(Eo *obj EINA_UNUSED, Evas_VG_Data *pd)
|
|||
}
|
||||
|
||||
void
|
||||
_evas_vg_eo_base_constructor(Eo *eo_obj, Evas_VG_Data *pd EINA_UNUSED)
|
||||
_evas_vg_eo_base_constructor(Eo *eo_obj, Evas_VG_Data *pd)
|
||||
{
|
||||
Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
|
||||
Eo *parent = NULL;
|
||||
|
@ -114,6 +114,9 @@ _evas_vg_eo_base_constructor(Eo *eo_obj, Evas_VG_Data *pd EINA_UNUSED)
|
|||
obj->private_data = eo_data_ref(eo_obj, MY_CLASS);
|
||||
obj->type = o_type;
|
||||
|
||||
/* root node */
|
||||
pd->root = eo_add(EVAS_VG_ROOT_NODE_CLASS, eo_obj);
|
||||
|
||||
eo_do(eo_obj, parent = eo_parent_get());
|
||||
evas_object_inject(eo_obj, obj, evas_object_evas_get(parent));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue