summaryrefslogtreecommitdiff
path: root/src/examples/evas/evas-vg-batman.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/examples/evas/evas-vg-batman.c')
-rw-r--r--src/examples/evas/evas-vg-batman.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/examples/evas/evas-vg-batman.c b/src/examples/evas/evas-vg-batman.c
index 1d1a5f3..87a1f6d 100644
--- a/src/examples/evas/evas-vg-batman.c
+++ b/src/examples/evas/evas-vg-batman.c
@@ -22,10 +22,6 @@
22#define EFL_BETA_API_SUPPORT 1 22#define EFL_BETA_API_SUPPORT 1
23#endif 23#endif
24 24
25#ifndef EFL_EO_API_SUPPORT
26#define EFL_EO_API_SUPPORT 1
27#endif
28
29#include <Eo.h> 25#include <Eo.h>
30#include <Efl.h> 26#include <Efl.h>
31#include <Evas.h> 27#include <Evas.h>
@@ -133,7 +129,7 @@ main(void)
133 129
134 for (i = 0; i < sizeof (batmans_path) / sizeof (batmans_path[0]); i++) 130 for (i = 0; i < sizeof (batmans_path) / sizeof (batmans_path[0]); i++)
135 { 131 {
136 batmans_vg[i] = eo_add(EFL_VG_SHAPE_CLASS, NULL); 132 batmans_vg[i] = evas_vg_shape_add(NULL);
137 evas_vg_shape_shape_append_svg_path(batmans_vg[i], batmans_path[i]); 133 evas_vg_shape_shape_append_svg_path(batmans_vg[i], batmans_path[i]);
138 } 134 }
139 135
@@ -141,12 +137,12 @@ main(void)
141 137
142 root = evas_object_vg_root_node_get(vg); 138 root = evas_object_vg_root_node_get(vg);
143 139
144 circle = eo_add(EFL_VG_SHAPE_CLASS, root); 140 circle = evas_vg_shape_add(root);
145 evas_vg_shape_shape_append_circle(circle, WIDTH / 2, HEIGHT / 2, 200); 141 evas_vg_shape_shape_append_circle(circle, WIDTH / 2, HEIGHT / 2, 200);
146 evas_vg_node_color_set(circle, 255, 255, 255, 255); 142 evas_vg_node_color_set(circle, 255, 255, 255, 255);
147 evas_vg_shape_stroke_color_set(circle, 0, 0, 0, 0); 143 evas_vg_shape_stroke_color_set(circle, 0, 0, 0, 0);
148 144
149 batman = eo_add(EFL_VG_SHAPE_CLASS, root); 145 batman = evas_vg_shape_add(root);
150 evas_vg_node_origin_set(batman, 100, 150); 146 evas_vg_node_origin_set(batman, 100, 150);
151 evas_vg_node_color_set(batman, 0, 0, 0, 255); 147 evas_vg_node_color_set(batman, 0, 0, 0, 255);
152 evas_vg_shape_stroke_color_set(batman, 0, 0, 0, 0); 148 evas_vg_shape_stroke_color_set(batman, 0, 0, 0, 0);