summaryrefslogtreecommitdiff
path: root/src/bin/vg_basic_gradient.c
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-03-11 12:40:21 +0000
committerTom Hacohen <tom@stosb.com>2016-03-11 12:40:21 +0000
commita927cdd1a41f418dd1ca6f5db5138e629b1b3758 (patch)
tree8392f28ad2068908d4edeef73c23642c97f91813 /src/bin/vg_basic_gradient.c
parent1c99584bcb72aabedfb7e9696bae1661c14ddd0c (diff)
Revert "Automatic migration to the new eo_add syntax."
We reverted those changes. This reverts commit 1c99584bcb72aabedfb7e9696bae1661c14ddd0c.
Diffstat (limited to 'src/bin/vg_basic_gradient.c')
-rw-r--r--src/bin/vg_basic_gradient.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/vg_basic_gradient.c b/src/bin/vg_basic_gradient.c
index b3a4a5a..1a0a0e9 100644
--- a/src/bin/vg_basic_gradient.c
+++ b/src/bin/vg_basic_gradient.c
@@ -36,7 +36,7 @@ static void _setup(void)
36 Eo *vector; 36 Eo *vector;
37 double w = 70, h = 70, stroke_w = 3; 37 double w = 70, h = 70, stroke_w = 3;
38 38
39 eo_add(&vector, EVAS_VG_CLASS, evas); 39 vector = eo_add(EVAS_VG_CLASS, evas);
40 o_shapes[i] = vector; 40 o_shapes[i] = vector;
41 efl_gfx_size_set(vector, w + stroke_w * 2, h + stroke_w * 2); 41 efl_gfx_size_set(vector, w + stroke_w * 2, h + stroke_w * 2);
42 efl_gfx_position_set(vector, 0, 0); 42 efl_gfx_position_set(vector, 0, 0);
@@ -44,13 +44,13 @@ static void _setup(void)
44 44
45 root = evas_obj_vg_root_node_get(vector); 45 root = evas_obj_vg_root_node_get(vector);
46 46
47 eo_add(&gradient, EFL_VG_GRADIENT_LINEAR_CLASS, NULL); 47 gradient = eo_add(EFL_VG_GRADIENT_LINEAR_CLASS, NULL);
48 efl_gfx_gradient_stop_set(gradient, stops, 3); 48 efl_gfx_gradient_stop_set(gradient, stops, 3);
49 efl_gfx_gradient_spread_set(gradient, EFL_GFX_GRADIENT_SPREAD_REFLECT); 49 efl_gfx_gradient_spread_set(gradient, EFL_GFX_GRADIENT_SPREAD_REFLECT);
50 efl_gfx_gradient_linear_start_set(gradient, 10, 10); 50 efl_gfx_gradient_linear_start_set(gradient, 10, 10);
51 efl_gfx_gradient_linear_end_set(gradient, 50, 50); 51 efl_gfx_gradient_linear_end_set(gradient, 50, 50);
52 52
53 eo_add(&rect, EFL_VG_SHAPE_CLASS, root); 53 rect = eo_add(EFL_VG_SHAPE_CLASS, root);
54 efl_gfx_shape_append_rect(rect, 0 + stroke_w, 0 + stroke_w, w, h, 10, 10); 54 efl_gfx_shape_append_rect(rect, 0 + stroke_w, 0 + stroke_w, w, h, 10, 10);
55 efl_vg_shape_fill_set(rect, gradient); 55 efl_vg_shape_fill_set(rect, gradient);
56 efl_gfx_shape_stroke_width_set(rect, stroke_w); 56 efl_gfx_shape_stroke_width_set(rect, stroke_w);