summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2015-09-15 07:45:13 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-09-15 07:45:13 +0200
commit9cf0688f994c8bae395a79be39b1551278861794 (patch)
treef1134b79d9624adf3afd2c337536b4e74d9a0923
parent6c1e40666d3dbbfe73a7b5d3c60323d995994243 (diff)
vg: fix inapropriate parenting of gradient.
-rw-r--r--src/bin/vg_basic_gradient.c2
-rw-r--r--src/bin/vg_scaled.c8
2 files changed, 7 insertions, 3 deletions
diff --git a/src/bin/vg_basic_gradient.c b/src/bin/vg_basic_gradient.c
index 66ef482..faa9e26 100644
--- a/src/bin/vg_basic_gradient.c
+++ b/src/bin/vg_basic_gradient.c
@@ -45,7 +45,7 @@ static void _setup(void)
45 45
46 eo_do(vector, root = evas_obj_vg_root_node_get()); 46 eo_do(vector, root = evas_obj_vg_root_node_get());
47 47
48 gradient = eo_add(EFL_VG_GRADIENT_LINEAR_CLASS, root); 48 gradient = eo_add(EFL_VG_GRADIENT_LINEAR_CLASS, NULL);
49 eo_do(gradient, 49 eo_do(gradient,
50 efl_gfx_gradient_stop_set(stops, 3), 50 efl_gfx_gradient_stop_set(stops, 3),
51 efl_gfx_gradient_spread_set(EFL_GFX_GRADIENT_SPREAD_REFLECT), 51 efl_gfx_gradient_spread_set(EFL_GFX_GRADIENT_SPREAD_REFLECT),
diff --git a/src/bin/vg_scaled.c b/src/bin/vg_scaled.c
index 1e270a3..a0003e5 100644
--- a/src/bin/vg_scaled.c
+++ b/src/bin/vg_scaled.c
@@ -45,7 +45,7 @@ static void _setup(void)
45 45
46 eo_do(vector, root = evas_obj_vg_root_node_get()); 46 eo_do(vector, root = evas_obj_vg_root_node_get());
47 47
48 o_gradient[i] = gradient = eo_add(EFL_VG_GRADIENT_LINEAR_CLASS, root); 48 o_gradient[i] = gradient = eo_add(EFL_VG_GRADIENT_LINEAR_CLASS, NULL);
49 eo_do(gradient, 49 eo_do(gradient,
50 efl_gfx_gradient_stop_set(stops, 3), 50 efl_gfx_gradient_stop_set(stops, 3),
51 efl_gfx_gradient_spread_set(EFL_GFX_GRADIENT_SPREAD_REFLECT), 51 efl_gfx_gradient_spread_set(EFL_GFX_GRADIENT_SPREAD_REFLECT),
@@ -68,7 +68,11 @@ static void _cleanup(void)
68{ 68{
69 unsigned int i; 69 unsigned int i;
70 70
71 for (i = 0; i < OBNUM; i++) eo_del(o_objects[i]); 71 for (i = 0; i < OBNUM; i++)
72 {
73 eo_del(o_objects[i]);
74 o_objects[i] = NULL;
75 }
72} 76}
73 77
74/* loop - do things */ 78/* loop - do things */