summaryrefslogtreecommitdiff
path: root/src/lib/evas
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/evas')
-rw-r--r--src/lib/evas/Evas_Legacy.h3
-rw-r--r--src/lib/evas/canvas/evas_canvas3d_camera.c3
-rw-r--r--src/lib/evas/canvas/evas_canvas3d_light.c3
-rw-r--r--src/lib/evas/canvas/evas_canvas3d_material.c3
-rw-r--r--src/lib/evas/canvas/evas_canvas3d_mesh.c3
-rw-r--r--src/lib/evas/canvas/evas_canvas3d_node.c3
-rw-r--r--src/lib/evas/canvas/evas_canvas3d_primitive.c3
-rw-r--r--src/lib/evas/canvas/evas_canvas3d_scene.c3
-rw-r--r--src/lib/evas/canvas/evas_canvas3d_texture.c3
-rw-r--r--src/lib/evas/canvas/evas_main.c3
-rw-r--r--src/lib/evas/canvas/evas_object_box.c3
-rw-r--r--src/lib/evas/canvas/evas_object_grid.c3
-rw-r--r--src/lib/evas/canvas/evas_object_image.c3
-rw-r--r--src/lib/evas/canvas/evas_object_line.c3
-rw-r--r--src/lib/evas/canvas/evas_object_polygon.c3
-rw-r--r--src/lib/evas/canvas/evas_object_rectangle.c3
-rw-r--r--src/lib/evas/canvas/evas_object_smart.c2
-rw-r--r--src/lib/evas/canvas/evas_object_table.c3
-rw-r--r--src/lib/evas/canvas/evas_object_text.c3
-rw-r--r--src/lib/evas/canvas/evas_object_textblock.c3
-rw-r--r--src/lib/evas/canvas/evas_object_textgrid.c3
-rw-r--r--src/lib/evas/canvas/evas_object_vg.c5
-rw-r--r--src/lib/evas/canvas/evas_out.c3
-rw-r--r--src/lib/evas/canvas/evas_vg_container.c6
-rw-r--r--src/lib/evas/canvas/evas_vg_node.c2
-rw-r--r--src/lib/evas/canvas/evas_vg_shape.c9
26 files changed, 31 insertions, 56 deletions
diff --git a/src/lib/evas/Evas_Legacy.h b/src/lib/evas/Evas_Legacy.h
index 9163047..6f2108f 100644
--- a/src/lib/evas/Evas_Legacy.h
+++ b/src/lib/evas/Evas_Legacy.h
@@ -1681,8 +1681,7 @@ EAPI Evas_Object *evas_object_rectangle_add(Evas *e) EINA_WARN_UNUSED_RESULT EIN
1681 * @code 1681 * @code
1682 * vector = evas_object_vg_add(canvas); 1682 * vector = evas_object_vg_add(canvas);
1683 * root = evas_obj_vg_root_node_get(vector); 1683 * root = evas_obj_vg_root_node_get(vector);
1684 * shape = NULL; 1684 * shape = eo_add(EVAS_VG_SHAPE_CLASS, root);
1685 eo_add(&shape, EVAS_VG_SHAPE_CLASS, root);
1686 * Efl_Gfx_Path_Command *path_cmd = NULL; 1685 * Efl_Gfx_Path_Command *path_cmd = NULL;
1687 * double *points = NULL; 1686 * double *points = NULL;
1688 * efl_gfx_path_append_circle(&path_cmd, &points); 1687 * efl_gfx_path_append_circle(&path_cmd, &points);
diff --git a/src/lib/evas/canvas/evas_canvas3d_camera.c b/src/lib/evas/canvas/evas_canvas3d_camera.c
index 9b1fc6c..d631df6 100644
--- a/src/lib/evas/canvas/evas_canvas3d_camera.c
+++ b/src/lib/evas/canvas/evas_canvas3d_camera.c
@@ -101,8 +101,7 @@ evas_canvas3d_camera_add(Evas *e)
101 MAGIC_CHECK(e, Evas, MAGIC_EVAS); 101 MAGIC_CHECK(e, Evas, MAGIC_EVAS);
102 return NULL; 102 return NULL;
103 MAGIC_CHECK_END(); 103 MAGIC_CHECK_END();
104 Evas_Object *eo_obj = NULL; 104 Evas_Object *eo_obj = eo_add(MY_CLASS, e);
105 eo_add(&eo_obj, MY_CLASS, e);
106 return eo_obj; 105 return eo_obj;
107} 106}
108 107
diff --git a/src/lib/evas/canvas/evas_canvas3d_light.c b/src/lib/evas/canvas/evas_canvas3d_light.c
index b9b186f..11e9c81 100644
--- a/src/lib/evas/canvas/evas_canvas3d_light.c
+++ b/src/lib/evas/canvas/evas_canvas3d_light.c
@@ -72,8 +72,7 @@ evas_canvas3d_light_add(Evas *e)
72 MAGIC_CHECK(e, Evas, MAGIC_EVAS); 72 MAGIC_CHECK(e, Evas, MAGIC_EVAS);
73 return NULL; 73 return NULL;
74 MAGIC_CHECK_END(); 74 MAGIC_CHECK_END();
75 Evas_Object *eo_obj = NULL; 75 Evas_Object *eo_obj = eo_add(MY_CLASS, e);
76 eo_add(&eo_obj, MY_CLASS, e);
77 return eo_obj; 76 return eo_obj;
78} 77}
79 78
diff --git a/src/lib/evas/canvas/evas_canvas3d_material.c b/src/lib/evas/canvas/evas_canvas3d_material.c
index 98a4e66..5070d44 100644
--- a/src/lib/evas/canvas/evas_canvas3d_material.c
+++ b/src/lib/evas/canvas/evas_canvas3d_material.c
@@ -84,8 +84,7 @@ evas_canvas3d_material_add(Evas *e)
84 MAGIC_CHECK(e, Evas, MAGIC_EVAS); 84 MAGIC_CHECK(e, Evas, MAGIC_EVAS);
85 return NULL; 85 return NULL;
86 MAGIC_CHECK_END(); 86 MAGIC_CHECK_END();
87 Evas_Object *eo_obj = NULL; 87 Evas_Object *eo_obj = eo_add(MY_CLASS, e);
88 eo_add(&eo_obj, MY_CLASS, e);
89 return eo_obj; 88 return eo_obj;
90} 89}
91 90
diff --git a/src/lib/evas/canvas/evas_canvas3d_mesh.c b/src/lib/evas/canvas/evas_canvas3d_mesh.c
index 5442eca..d19a1fc 100644
--- a/src/lib/evas/canvas/evas_canvas3d_mesh.c
+++ b/src/lib/evas/canvas/evas_canvas3d_mesh.c
@@ -254,8 +254,7 @@ evas_canvas3d_mesh_add(Evas *e)
254 MAGIC_CHECK(e, Evas, MAGIC_EVAS); 254 MAGIC_CHECK(e, Evas, MAGIC_EVAS);
255 return NULL; 255 return NULL;
256 MAGIC_CHECK_END(); 256 MAGIC_CHECK_END();
257 Evas_Object *eo_obj = NULL; 257 Evas_Object *eo_obj = eo_add(MY_CLASS, e);
258 eo_add(&eo_obj, MY_CLASS, e);
259 return eo_obj; 258 return eo_obj;
260} 259}
261 260
diff --git a/src/lib/evas/canvas/evas_canvas3d_node.c b/src/lib/evas/canvas/evas_canvas3d_node.c
index 246450f..5e0944d 100644
--- a/src/lib/evas/canvas/evas_canvas3d_node.c
+++ b/src/lib/evas/canvas/evas_canvas3d_node.c
@@ -1012,8 +1012,7 @@ evas_canvas3d_node_add(Evas *e, Evas_Canvas3D_Node_Type type)
1012 MAGIC_CHECK(e, Evas, MAGIC_EVAS); 1012 MAGIC_CHECK(e, Evas, MAGIC_EVAS);
1013 return NULL; 1013 return NULL;
1014 MAGIC_CHECK_END(); 1014 MAGIC_CHECK_END();
1015 Evas_Object *eo_obj = NULL; 1015 Evas_Object *eo_obj = eo_add(MY_CLASS, e, evas_canvas3d_node_constructor(eoid, type));
1016 eo_add(&eo_obj, MY_CLASS, e, evas_canvas3d_node_constructor(eo_obj, type));
1017 return eo_obj; 1016 return eo_obj;
1018} 1017}
1019 1018
diff --git a/src/lib/evas/canvas/evas_canvas3d_primitive.c b/src/lib/evas/canvas/evas_canvas3d_primitive.c
index ab07d13..76dcdd6 100644
--- a/src/lib/evas/canvas/evas_canvas3d_primitive.c
+++ b/src/lib/evas/canvas/evas_canvas3d_primitive.c
@@ -20,8 +20,7 @@ evas_canvas3d_primitive_add(Evas *e)
20 MAGIC_CHECK(e, Evas, MAGIC_EVAS); 20 MAGIC_CHECK(e, Evas, MAGIC_EVAS);
21 return NULL; 21 return NULL;
22 MAGIC_CHECK_END(); 22 MAGIC_CHECK_END();
23 Evas_Object *eo_obj = NULL; 23 Evas_Object *eo_obj = eo_add(MY_CLASS, e);
24 eo_add(&eo_obj, MY_CLASS, e);
25 return eo_obj; 24 return eo_obj;
26} 25}
27 26
diff --git a/src/lib/evas/canvas/evas_canvas3d_scene.c b/src/lib/evas/canvas/evas_canvas3d_scene.c
index e1a0295..cb7ffc3 100644
--- a/src/lib/evas/canvas/evas_canvas3d_scene.c
+++ b/src/lib/evas/canvas/evas_canvas3d_scene.c
@@ -61,8 +61,7 @@ evas_canvas3d_scene_add(Evas *e)
61 MAGIC_CHECK(e, Evas, MAGIC_EVAS); 61 MAGIC_CHECK(e, Evas, MAGIC_EVAS);
62 return NULL; 62 return NULL;
63 MAGIC_CHECK_END(); 63 MAGIC_CHECK_END();
64 Evas_Object *eo_obj = NULL; 64 Evas_Object *eo_obj = eo_add(MY_CLASS, e);
65 eo_add(&eo_obj, MY_CLASS, e);
66 return eo_obj; 65 return eo_obj;
67} 66}
68 67
diff --git a/src/lib/evas/canvas/evas_canvas3d_texture.c b/src/lib/evas/canvas/evas_canvas3d_texture.c
index b058765..664de1c 100644
--- a/src/lib/evas/canvas/evas_canvas3d_texture.c
+++ b/src/lib/evas/canvas/evas_canvas3d_texture.c
@@ -313,8 +313,7 @@ evas_canvas3d_texture_add(Evas *e)
313 MAGIC_CHECK(e, Evas, MAGIC_EVAS); 313 MAGIC_CHECK(e, Evas, MAGIC_EVAS);
314 return NULL; 314 return NULL;
315 MAGIC_CHECK_END(); 315 MAGIC_CHECK_END();
316 Evas_Object *eo_obj = NULL; 316 Evas_Object *eo_obj = eo_add(MY_CLASS, e);
317 eo_add(&eo_obj, MY_CLASS, e);
318 return eo_obj; 317 return eo_obj;
319} 318}
320 319
diff --git a/src/lib/evas/canvas/evas_main.c b/src/lib/evas/canvas/evas_main.c
index 56956a7..38e901a 100644
--- a/src/lib/evas/canvas/evas_main.c
+++ b/src/lib/evas/canvas/evas_main.c
@@ -151,8 +151,7 @@ evas_shutdown(void)
151EAPI Evas * 151EAPI Evas *
152evas_new(void) 152evas_new(void)
153{ 153{
154 Evas_Object *eo_obj = NULL; 154 Evas_Object *eo_obj = eo_add(EVAS_CANVAS_CLASS, NULL);
155 eo_add(&eo_obj, EVAS_CANVAS_CLASS, NULL);
156 return eo_obj; 155 return eo_obj;
157} 156}
158 157
diff --git a/src/lib/evas/canvas/evas_object_box.c b/src/lib/evas/canvas/evas_object_box.c
index 739012e..55e7ca5 100644
--- a/src/lib/evas/canvas/evas_object_box.c
+++ b/src/lib/evas/canvas/evas_object_box.c
@@ -458,8 +458,7 @@ evas_object_box_add(Evas *evas)
458 MAGIC_CHECK(evas, Evas, MAGIC_EVAS); 458 MAGIC_CHECK(evas, Evas, MAGIC_EVAS);
459 return NULL; 459 return NULL;
460 MAGIC_CHECK_END(); 460 MAGIC_CHECK_END();
461 Evas_Object *obj = NULL; 461 Evas_Object *obj = eo_add(MY_CLASS, evas);
462 eo_add(&obj, MY_CLASS, evas);
463 return obj; 462 return obj;
464} 463}
465 464
diff --git a/src/lib/evas/canvas/evas_object_grid.c b/src/lib/evas/canvas/evas_object_grid.c
index 12b6d2b..0374b13 100644
--- a/src/lib/evas/canvas/evas_object_grid.c
+++ b/src/lib/evas/canvas/evas_object_grid.c
@@ -265,8 +265,7 @@ evas_object_grid_add(Evas *evas)
265 MAGIC_CHECK(evas, Evas, MAGIC_EVAS); 265 MAGIC_CHECK(evas, Evas, MAGIC_EVAS);
266 return NULL; 266 return NULL;
267 MAGIC_CHECK_END(); 267 MAGIC_CHECK_END();
268 Evas_Object *obj = NULL; 268 Evas_Object *obj = eo_add(MY_CLASS, evas);
269 eo_add(&obj, MY_CLASS, evas);
270 return obj; 269 return obj;
271} 270}
272 271
diff --git a/src/lib/evas/canvas/evas_object_image.c b/src/lib/evas/canvas/evas_object_image.c
index 0367fa2..f3b1d77 100644
--- a/src/lib/evas/canvas/evas_object_image.c
+++ b/src/lib/evas/canvas/evas_object_image.c
@@ -383,8 +383,7 @@ evas_object_image_add(Evas *eo_e)
383 Evas_Public_Data *e = eo_data_scope_get(eo_e, EVAS_CANVAS_CLASS); 383 Evas_Public_Data *e = eo_data_scope_get(eo_e, EVAS_CANVAS_CLASS);
384 EINA_SAFETY_ON_NULL_RETURN_VAL(e, NULL); 384 EINA_SAFETY_ON_NULL_RETURN_VAL(e, NULL);
385 EINA_SAFETY_ON_NULL_RETURN_VAL(e->engine.func, NULL); 385 EINA_SAFETY_ON_NULL_RETURN_VAL(e->engine.func, NULL);
386 Evas_Object *eo_obj = NULL; 386 Evas_Object *eo_obj = eo_add(EVAS_IMAGE_CLASS, eo_e);
387 eo_add(&eo_obj, EVAS_IMAGE_CLASS, eo_e);
388 return eo_obj; 387 return eo_obj;
389} 388}
390 389
diff --git a/src/lib/evas/canvas/evas_object_line.c b/src/lib/evas/canvas/evas_object_line.c
index 07ef578..26dd5c7 100644
--- a/src/lib/evas/canvas/evas_object_line.c
+++ b/src/lib/evas/canvas/evas_object_line.c
@@ -97,8 +97,7 @@ evas_object_line_add(Evas *e)
97 MAGIC_CHECK(e, Evas, MAGIC_EVAS); 97 MAGIC_CHECK(e, Evas, MAGIC_EVAS);
98 return NULL; 98 return NULL;
99 MAGIC_CHECK_END(); 99 MAGIC_CHECK_END();
100 Evas_Object *eo_obj = NULL; 100 Evas_Object *eo_obj = eo_add(EVAS_LINE_CLASS, e);
101 eo_add(&eo_obj, EVAS_LINE_CLASS, e);
102 return eo_obj; 101 return eo_obj;
103} 102}
104 103
diff --git a/src/lib/evas/canvas/evas_object_polygon.c b/src/lib/evas/canvas/evas_object_polygon.c
index 10276ca..a154e37 100644
--- a/src/lib/evas/canvas/evas_object_polygon.c
+++ b/src/lib/evas/canvas/evas_object_polygon.c
@@ -98,8 +98,7 @@ evas_object_polygon_add(Evas *e)
98 MAGIC_CHECK(e, Evas, MAGIC_EVAS); 98 MAGIC_CHECK(e, Evas, MAGIC_EVAS);
99 return NULL; 99 return NULL;
100 MAGIC_CHECK_END(); 100 MAGIC_CHECK_END();
101 Evas_Object *eo_obj = NULL; 101 Evas_Object *eo_obj = eo_add(EVAS_POLYGON_CLASS, e);
102 eo_add(&eo_obj, EVAS_POLYGON_CLASS, e);
103 return eo_obj; 102 return eo_obj;
104} 103}
105 104
diff --git a/src/lib/evas/canvas/evas_object_rectangle.c b/src/lib/evas/canvas/evas_object_rectangle.c
index 212cda6..37f8266 100644
--- a/src/lib/evas/canvas/evas_object_rectangle.c
+++ b/src/lib/evas/canvas/evas_object_rectangle.c
@@ -95,8 +95,7 @@ evas_object_rectangle_add(Evas *e)
95 MAGIC_CHECK(e, Evas, MAGIC_EVAS); 95 MAGIC_CHECK(e, Evas, MAGIC_EVAS);
96 return NULL; 96 return NULL;
97 MAGIC_CHECK_END(); 97 MAGIC_CHECK_END();
98 Evas_Object *eo_obj = NULL; 98 Evas_Object *eo_obj = eo_add(EVAS_RECTANGLE_CLASS, e);
99 eo_add(&eo_obj, EVAS_RECTANGLE_CLASS, e);
100 return eo_obj; 99 return eo_obj;
101} 100}
102 101
diff --git a/src/lib/evas/canvas/evas_object_smart.c b/src/lib/evas/canvas/evas_object_smart.c
index b380f58..44c18f1 100644
--- a/src/lib/evas/canvas/evas_object_smart.c
+++ b/src/lib/evas/canvas/evas_object_smart.c
@@ -570,7 +570,7 @@ evas_object_smart_add(Evas *eo_e, Evas_Smart *s)
570 MAGIC_CHECK(eo_e, Evas, MAGIC_EVAS); 570 MAGIC_CHECK(eo_e, Evas, MAGIC_EVAS);
571 return NULL; 571 return NULL;
572 MAGIC_CHECK_END(); 572 MAGIC_CHECK_END();
573 eo_add(&eo_obj, EVAS_OBJECT_SMART_CLASS, eo_e); 573 eo_obj = eo_add(EVAS_OBJECT_SMART_CLASS, eo_e);
574 evas_obj_smart_attach(eo_obj, s); 574 evas_obj_smart_attach(eo_obj, s);
575 return eo_obj; 575 return eo_obj;
576} 576}
diff --git a/src/lib/evas/canvas/evas_object_table.c b/src/lib/evas/canvas/evas_object_table.c
index ab71ad8..60a83fd 100644
--- a/src/lib/evas/canvas/evas_object_table.c
+++ b/src/lib/evas/canvas/evas_object_table.c
@@ -964,8 +964,7 @@ evas_object_table_add(Evas *evas)
964 MAGIC_CHECK(evas, Evas, MAGIC_EVAS); 964 MAGIC_CHECK(evas, Evas, MAGIC_EVAS);
965 return NULL; 965 return NULL;
966 MAGIC_CHECK_END(); 966 MAGIC_CHECK_END();
967 Evas_Object *obj = NULL; 967 Evas_Object *obj = eo_add(MY_CLASS, evas);
968 eo_add(&obj, MY_CLASS, evas);
969 return obj; 968 return obj;
970} 969}
971 970
diff --git a/src/lib/evas/canvas/evas_object_text.c b/src/lib/evas/canvas/evas_object_text.c
index 723c8b5..a492ebd 100644
--- a/src/lib/evas/canvas/evas_object_text.c
+++ b/src/lib/evas/canvas/evas_object_text.c
@@ -372,8 +372,7 @@ evas_object_text_add(Evas *e)
372 MAGIC_CHECK(e, Evas, MAGIC_EVAS); 372 MAGIC_CHECK(e, Evas, MAGIC_EVAS);
373 return NULL; 373 return NULL;
374 MAGIC_CHECK_END(); 374 MAGIC_CHECK_END();
375 Evas_Object *eo_obj = NULL; 375 Evas_Object *eo_obj = eo_add(EVAS_TEXT_CLASS, e);
376 eo_add(&eo_obj, EVAS_TEXT_CLASS, e);
377 return eo_obj; 376 return eo_obj;
378} 377}
379 378
diff --git a/src/lib/evas/canvas/evas_object_textblock.c b/src/lib/evas/canvas/evas_object_textblock.c
index b82a691..8066f08 100644
--- a/src/lib/evas/canvas/evas_object_textblock.c
+++ b/src/lib/evas/canvas/evas_object_textblock.c
@@ -6253,8 +6253,7 @@ evas_object_textblock_add(Evas *e)
6253 MAGIC_CHECK(e, Evas, MAGIC_EVAS); 6253 MAGIC_CHECK(e, Evas, MAGIC_EVAS);
6254 return NULL; 6254 return NULL;
6255 MAGIC_CHECK_END(); 6255 MAGIC_CHECK_END();
6256 Evas_Object *eo_obj = NULL; 6256 Evas_Object *eo_obj = eo_add(EVAS_TEXTBLOCK_CLASS, e);
6257 eo_add(&eo_obj, EVAS_TEXTBLOCK_CLASS, e);
6258 return eo_obj; 6257 return eo_obj;
6259} 6258}
6260 6259
diff --git a/src/lib/evas/canvas/evas_object_textgrid.c b/src/lib/evas/canvas/evas_object_textgrid.c
index bcbc186..8742a4c 100644
--- a/src/lib/evas/canvas/evas_object_textgrid.c
+++ b/src/lib/evas/canvas/evas_object_textgrid.c
@@ -1056,8 +1056,7 @@ evas_object_textgrid_add(Evas *e)
1056 MAGIC_CHECK(e, Evas, MAGIC_EVAS); 1056 MAGIC_CHECK(e, Evas, MAGIC_EVAS);
1057 return NULL; 1057 return NULL;
1058 MAGIC_CHECK_END(); 1058 MAGIC_CHECK_END();
1059 Evas_Object *eo_obj = NULL; 1059 Evas_Object *eo_obj = eo_add(EVAS_TEXTGRID_CLASS, e);
1060 eo_add(&eo_obj, EVAS_TEXTGRID_CLASS, e);
1061 return eo_obj; 1060 return eo_obj;
1062} 1061}
1063 1062
diff --git a/src/lib/evas/canvas/evas_object_vg.c b/src/lib/evas/canvas/evas_object_vg.c
index 1b915e4..929b584 100644
--- a/src/lib/evas/canvas/evas_object_vg.c
+++ b/src/lib/evas/canvas/evas_object_vg.c
@@ -81,8 +81,7 @@ evas_object_vg_add(Evas *e)
81 MAGIC_CHECK(e, Evas, MAGIC_EVAS); 81 MAGIC_CHECK(e, Evas, MAGIC_EVAS);
82 return NULL; 82 return NULL;
83 MAGIC_CHECK_END(); 83 MAGIC_CHECK_END();
84 Evas_Object *eo_obj = NULL; 84 Evas_Object *eo_obj = eo_add(MY_CLASS, e);
85 eo_add(&eo_obj, MY_CLASS, e);
86 85
87 // Ask backend to return the main Ector_Surface 86 // Ask backend to return the main Ector_Surface
88 87
@@ -138,7 +137,7 @@ _evas_vg_eo_base_constructor(Eo *eo_obj, Evas_VG_Data *pd)
138 obj->type = o_type; 137 obj->type = o_type;
139 138
140 /* root node */ 139 /* root node */
141 eo_add(&pd->root, EFL_VG_ROOT_NODE_CLASS, eo_obj); 140 pd->root = eo_add(EFL_VG_ROOT_NODE_CLASS, eo_obj);
142 eo_ref(pd->root); 141 eo_ref(pd->root);
143 142
144 eina_array_step_set(&pd->cleanup, sizeof(pd->cleanup), 8); 143 eina_array_step_set(&pd->cleanup, sizeof(pd->cleanup), 8);
diff --git a/src/lib/evas/canvas/evas_out.c b/src/lib/evas/canvas/evas_out.c
index fdf4f95..73c902c 100644
--- a/src/lib/evas/canvas/evas_out.c
+++ b/src/lib/evas/canvas/evas_out.c
@@ -19,8 +19,7 @@ evas_out_add(Evas *e)
19 MAGIC_CHECK(e, Evas, MAGIC_EVAS); 19 MAGIC_CHECK(e, Evas, MAGIC_EVAS);
20 return NULL; 20 return NULL;
21 MAGIC_CHECK_END(); 21 MAGIC_CHECK_END();
22 Evas_Object *eo_obj = NULL; 22 Evas_Object *eo_obj = eo_add(MY_CLASS, e);
23 eo_add(&eo_obj, MY_CLASS, e);
24 return eo_obj; 23 return eo_obj;
25} 24}
26 25
diff --git a/src/lib/evas/canvas/evas_vg_container.c b/src/lib/evas/canvas/evas_vg_container.c
index 7491c3a..7d766a5 100644
--- a/src/lib/evas/canvas/evas_vg_container.c
+++ b/src/lib/evas/canvas/evas_vg_container.c
@@ -155,16 +155,14 @@ _efl_vg_container_efl_vg_base_dup(Eo *obj,
155 { 155 {
156 // By setting parent, we automatically reference 156 // By setting parent, we automatically reference
157 // this new object as a child of obj. Magic at work ! 157 // this new object as a child of obj. Magic at work !
158 Eo *tmp = NULL; 158 (void) eo_add_ref(eo_class_get(child), obj, efl_vg_dup(eoid, child));
159 eo_add_ref(&tmp, eo_class_get(child), obj, efl_vg_dup(tmp, child));
160 } 159 }
161} 160}
162 161
163EAPI Efl_VG* 162EAPI Efl_VG*
164evas_vg_container_add(Efl_VG *parent) 163evas_vg_container_add(Efl_VG *parent)
165{ 164{
166 Eo *ret = NULL; 165 return eo_add(EFL_VG_CONTAINER_CLASS, parent);
167 return eo_add(&ret, EFL_VG_CONTAINER_CLASS, parent);
168} 166}
169 167
170#include "efl_vg_container.eo.c" 168#include "efl_vg_container.eo.c"
diff --git a/src/lib/evas/canvas/evas_vg_node.c b/src/lib/evas/canvas/evas_vg_node.c
index fed256b..2ae9135 100644
--- a/src/lib/evas/canvas/evas_vg_node.c
+++ b/src/lib/evas/canvas/evas_vg_node.c
@@ -779,7 +779,7 @@ _efl_vg_base_dup(Eo *obj, Efl_VG_Base_Data *pd, const Efl_VG_Base *from)
779 if (fromd->mask) 779 if (fromd->mask)
780 { 780 {
781 Eo *tmp = pd->mask; 781 Eo *tmp = pd->mask;
782 eo_add(&pd->mask, eo_class_get(fromd->mask), obj, efl_vg_dup(pd->mask, tmp)); 782 pd->mask = eo_add(eo_class_get(fromd->mask), obj, efl_vg_dup(eoid, tmp));
783 } 783 }
784 784
785 pd->x = fromd->x; 785 pd->x = fromd->x;
diff --git a/src/lib/evas/canvas/evas_vg_shape.c b/src/lib/evas/canvas/evas_vg_shape.c
index 9d49735..312953a 100644
--- a/src/lib/evas/canvas/evas_vg_shape.c
+++ b/src/lib/evas/canvas/evas_vg_shape.c
@@ -232,17 +232,17 @@ _efl_vg_shape_efl_vg_base_dup(Eo *obj, Efl_VG_Shape_Data *pd EINA_UNUSED, const
232 232
233 if (fromd->fill) 233 if (fromd->fill)
234 { 234 {
235 eo_add(&fill, eo_class_get(fromd->fill), parent, efl_vg_dup(fill, fromd->fill)); 235 fill = eo_add(eo_class_get(fromd->fill), parent, efl_vg_dup(eoid, fromd->fill));
236 } 236 }
237 237
238 if (fromd->stroke.fill) 238 if (fromd->stroke.fill)
239 { 239 {
240 eo_add(&stroke_fill, eo_class_get(fromd->stroke.fill), parent, efl_vg_dup(stroke_fill, fromd->stroke.fill)); 240 stroke_fill = eo_add(eo_class_get(fromd->stroke.fill), parent, efl_vg_dup(eoid, fromd->stroke.fill));
241 } 241 }
242 242
243 if (fromd->stroke.marker) 243 if (fromd->stroke.marker)
244 { 244 {
245 eo_add(&stroke_marker, eo_class_get(fromd->stroke.marker), parent, efl_vg_dup(stroke_marker, fromd->stroke.marker)); 245 stroke_marker = eo_add(eo_class_get(fromd->stroke.marker), parent, efl_vg_dup(eoid, fromd->stroke.marker));
246 } 246 }
247 247
248 efl_vg_shape_fill_set(obj, fill); 248 efl_vg_shape_fill_set(obj, fill);
@@ -458,8 +458,7 @@ evas_vg_shape_shape_equal_commands(Eo *obj, const Eo *with)
458EAPI Efl_VG* 458EAPI Efl_VG*
459evas_vg_shape_add(Efl_VG *parent) 459evas_vg_shape_add(Efl_VG *parent)
460{ 460{
461 Eo *ret = NULL; 461 return eo_add(EFL_VG_SHAPE_CLASS, parent);
462 return eo_add(&ret, EFL_VG_SHAPE_CLASS, parent);
463} 462}
464 463
465#include "efl_vg_shape.eo.c" 464#include "efl_vg_shape.eo.c"