summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_vg_container.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-11-29 20:03:16 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-11-30 10:48:24 +0900
commitbd5b76508b0b3bdc5d92f5f7db9741c100d47d3c (patch)
tree2e16d88bf93fde807e8b06e0bfe1c9e0f518adbd /src/lib/evas/canvas/evas_vg_container.c
parent8803040484721c15e5a7f48f4373b38d41d9d42e (diff)
efl: Introduce interface Efl.Dup
A few classes allow their objects to be duplicated, so they should all use the same interface. Also, rename VG's dup to copy_from as it's not conforming to the definition of dup.
Diffstat (limited to 'src/lib/evas/canvas/evas_vg_container.c')
-rw-r--r--src/lib/evas/canvas/evas_vg_container.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/evas/canvas/evas_vg_container.c b/src/lib/evas/canvas/evas_vg_container.c
index b89d702..907d428 100644
--- a/src/lib/evas/canvas/evas_vg_container.c
+++ b/src/lib/evas/canvas/evas_vg_container.c
@@ -152,17 +152,17 @@ _efl_vg_container_efl_vg_interpolate(Eo *obj,
152} 152}
153 153
154EOLIAN static Efl_VG * 154EOLIAN static Efl_VG *
155_efl_vg_container_efl_vg_dup(const Eo *obj, Efl_VG_Container_Data *pd) 155_efl_vg_container_efl_dup_dup(const Eo *obj, Efl_VG_Container_Data *pd)
156{ 156{
157 Eina_List *l; 157 Eina_List *l;
158 Efl_VG *child; 158 Efl_VG *child;
159 Efl_VG *cn = NULL; 159 Efl_VG *cn = NULL;
160 160
161 cn = efl_vg_dup(efl_super(obj, MY_CLASS)); 161 cn = efl_dup(efl_super(obj, MY_CLASS));
162 EINA_LIST_FOREACH(pd->children, l, child) 162 EINA_LIST_FOREACH(pd->children, l, child)
163 { 163 {
164 // parent_set adds the new node to the list of children of cn 164 // parent_set adds the new node to the list of children of cn
165 efl_parent_set(efl_vg_dup(child), cn); 165 efl_parent_set(efl_dup(child), cn);
166 } 166 }
167 return cn; 167 return cn;
168} 168}