summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_vg_container.c
diff options
context:
space:
mode:
authorsubhransu mohanty <sub.mohanty@samsung.com>2017-11-08 15:49:37 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-11-08 15:55:52 +0900
commit8952c3e52444d78504a822bf95d757621891dd41 (patch)
treef9bb53fea3fe98026a91b83540c9074784497e86 /src/lib/evas/canvas/evas_vg_container.c
parent75a65ad41a02e2352a193b3b6cea2a99b7562591 (diff)
evas/vg: changed the efl_vg_dup api signature.
Reviewers: jpeg, cedric Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D5440
Diffstat (limited to 'src/lib/evas/canvas/evas_vg_container.c')
-rw-r--r--src/lib/evas/canvas/evas_vg_container.c26
1 files changed, 9 insertions, 17 deletions
diff --git a/src/lib/evas/canvas/evas_vg_container.c b/src/lib/evas/canvas/evas_vg_container.c
index 704d6c1..b89d702 100644
--- a/src/lib/evas/canvas/evas_vg_container.c
+++ b/src/lib/evas/canvas/evas_vg_container.c
@@ -151,28 +151,20 @@ _efl_vg_container_efl_vg_interpolate(Eo *obj,
151 return r; 151 return r;
152} 152}
153 153
154static void 154EOLIAN static Efl_VG *
155_efl_vg_container_efl_vg_dup(Eo *obj, 155_efl_vg_container_efl_vg_dup(const Eo *obj, Efl_VG_Container_Data *pd)
156 Efl_VG_Container_Data *pd,
157 const Efl_VG *from)
158{ 156{
159 Efl_VG_Container_Data *fromd;
160 Eina_List *l; 157 Eina_List *l;
161 Eo *child; 158 Efl_VG *child;
162 159 Efl_VG *cn = NULL;
163 efl_vg_dup(efl_super(obj, EFL_VG_CONTAINER_CLASS), from);
164 160
165 fromd = efl_data_scope_get(from, EFL_VG_CONTAINER_CLASS); 161 cn = efl_vg_dup(efl_super(obj, MY_CLASS));
166 162 EINA_LIST_FOREACH(pd->children, l, child)
167 EINA_LIST_FREE(pd->children, child)
168 efl_unref(child);
169
170 EINA_LIST_FOREACH(fromd->children, l, child)
171 { 163 {
172 // By setting parent, we automatically reference 164 // parent_set adds the new node to the list of children of cn
173 // this new object as a child of obj. Magic at work ! 165 efl_parent_set(efl_vg_dup(child), cn);
174 (void) efl_add(efl_class_get(child), obj, efl_vg_dup(efl_added, child));
175 } 166 }
167 return cn;
176} 168}
177 169
178EAPI Efl_VG* 170EAPI Efl_VG*