evas: update example to always set a parent for VG node.
authorCedric BAIL <cedric@osg.samsung.com>
Tue, 3 Apr 2018 21:22:08 +0000 (14:22 -0700)
committerWonki Kim <wonki_.kim@samsung.com>
Tue, 10 Apr 2018 13:25:39 +0000 (22:25 +0900)
src/examples/evas/evas-vg-batman.c

index 5271608..cb13912 100644 (file)
@@ -133,7 +133,7 @@ main(void)
 
    for (i = 0; i < sizeof (batmans_path) / sizeof (batmans_path[0]); i++)
      {
-        batmans_vg[i] = evas_vg_shape_add(NULL);
+       batmans_vg[i] = evas_vg_shape_add(vg);
        evas_vg_node_color_set(batmans_vg[i], 0, 0, 0, 255);
        evas_vg_shape_stroke_color_set(batmans_vg[i], 128, 10,10, 128);
        evas_vg_shape_stroke_width_set(batmans_vg[i], 4.0);
@@ -150,7 +150,7 @@ main(void)
 
    animation = ecore_animator_timeline_add(1, _animator, NULL);
 
-   root = evas_vg_container_add(NULL);
+   root = evas_vg_container_add(vg);
 
    evas_object_vg_root_node_set(vg, root);
 
@@ -159,7 +159,6 @@ main(void)
    eina_matrix3_scale(&matrix, 1.1, 1.1);
    evas_vg_node_transformation_set(root, &matrix);
 
-
    circle = evas_vg_shape_add(root);
    evas_vg_shape_append_circle(circle, WIDTH / 2, HEIGHT / 2, 200);
    evas_vg_node_color_set(circle, 255, 255, 255, 255);