summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_object_vg.c
diff options
context:
space:
mode:
authorDaniel Hirt <daniel.hirt@samsung.com>2015-06-11 09:58:09 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-06-11 09:58:13 +0200
commited01a32c136aaba8fb23a12afaf334b4c47fc62e (patch)
tree55b460bae129537eb90928c5e0174a8ebc246a29 /src/lib/evas/canvas/evas_object_vg.c
parent4730afdba07d8879516de5323ba28f1115800680 (diff)
evas: move evas_object_inject to super's ctor
Summary: As we always call evas_object_inject in every Evas Object's ctcor, it seems sensible to move this repeated bit of code to the super (Evas.Object). Test Plan: Expedite, Elementary_Test and pretty much everything Reviewers: cedric, raster Subscribers: JackDanielZ, cedric Differential Revision: https://phab.enlightenment.org/D2665 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to '')
-rw-r--r--src/lib/evas/canvas/evas_object_vg.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/lib/evas/canvas/evas_object_vg.c b/src/lib/evas/canvas/evas_object_vg.c
index 0e3eaa76d0..9cc81e45c8 100644
--- a/src/lib/evas/canvas/evas_object_vg.c
+++ b/src/lib/evas/canvas/evas_object_vg.c
@@ -102,7 +102,6 @@ Eo *
102_evas_vg_eo_base_constructor(Eo *eo_obj, Evas_VG_Data *pd) 102_evas_vg_eo_base_constructor(Eo *eo_obj, Evas_VG_Data *pd)
103{ 103{
104 Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS); 104 Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
105 Eo *parent = NULL;
106 105
107 eo_obj = eo_do_super_ret(eo_obj, MY_CLASS, eo_obj, eo_constructor()); 106 eo_obj = eo_do_super_ret(eo_obj, MY_CLASS, eo_obj, eo_constructor());
108 107
@@ -115,9 +114,6 @@ _evas_vg_eo_base_constructor(Eo *eo_obj, Evas_VG_Data *pd)
115 pd->root = eo_add(EFL_VG_ROOT_NODE_CLASS, eo_obj); 114 pd->root = eo_add(EFL_VG_ROOT_NODE_CLASS, eo_obj);
116 eo_ref(pd->root); 115 eo_ref(pd->root);
117 116
118 eo_do(eo_obj, parent = eo_parent_get());
119 evas_object_inject(eo_obj, obj, evas_object_evas_get(parent));
120
121 return eo_obj; 117 return eo_obj;
122} 118}
123 119