evas: Evas_VG_Root_Node should only be attached to an Evas_Object_VG.

This commit is contained in:
Cedric BAIL 2015-04-03 16:13:05 +02:00
parent 95e70ee5cb
commit 9dcf840ade
1 changed files with 2 additions and 4 deletions

View File

@ -19,8 +19,7 @@ _evas_vg_root_node_eo_base_parent_set(Eo *obj,
{
// Nice little hack, jump over parent parent_set in Evas_VG_Root
eo_do_super(obj, EVAS_VG_NODE_CLASS, eo_constructor());
if (!eo_isa(parent, EVAS_VG_CLASS) &&
!eo_isa(parent, EVAS_VG_CONTAINER_CLASS))
if (!eo_isa(parent, EVAS_VG_CLASS))
eo_error_set(obj);
}
@ -33,8 +32,7 @@ _evas_vg_root_node_eo_base_constructor(Eo *obj,
// Nice little hack, jump over parent constructor in Evas_VG_Root
eo_do_super(obj, EVAS_VG_NODE_CLASS, eo_constructor());
eo_do(obj, parent = eo_parent_get());
if (!eo_isa(parent, EVAS_VG_CLASS) &&
!eo_isa(parent, EVAS_VG_CONTAINER_CLASS))
if (!eo_isa(parent, EVAS_VG_CLASS))
eo_error_set(obj);
}