aboutsummaryrefslogtreecommitdiffstats
path: root/src/examples/evas/evas-object-manipulation-eo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/examples/evas/evas-object-manipulation-eo.c')
-rw-r--r--src/examples/evas/evas-object-manipulation-eo.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/examples/evas/evas-object-manipulation-eo.c b/src/examples/evas/evas-object-manipulation-eo.c
index 9f17ee8313..a2ad39f9ee 100644
--- a/src/examples/evas/evas-object-manipulation-eo.c
+++ b/src/examples/evas/evas-object-manipulation-eo.c
@@ -174,7 +174,7 @@ main(void)
/* Creating object with Eo.
* Object must be deleted explixitly at the end of program.*/
- d.bg = eo_add(EVAS_RECTANGLE_CLASS, d.canvas);
+ eo_add(d.bg, EVAS_RECTANGLE_CLASS, d.canvas);
/* Eo-styled way to perform actions on an object*/
eo_do(d.bg, evas_obj_name_set("background rectangle"),
@@ -187,7 +187,7 @@ main(void)
evas_object_event_callback_add(
d.bg, EVAS_CALLBACK_KEY_DOWN, _on_keydown, NULL);
- d.img = eo_add(EVAS_IMAGE_CLASS, d.canvas);
+ eo_add(d.img, EVAS_IMAGE_CLASS, d.canvas);
/* As soon as 'canvas' object is a parent for 'image' object,
* 'canvas' keeps reference to 'image'.
@@ -214,7 +214,7 @@ main(void)
}
/* border on the image's clipper, here just to emphasize its position */
- d.clipper_border = eo_add(EVAS_IMAGE_CLASS, d.canvas);
+ eo_add(d.clipper_border, EVAS_IMAGE_CLASS, d.canvas);
eo_do(d.clipper_border, evas_obj_image_filled_set(EINA_TRUE),
efl_file_set(border_img_path, NULL),
err = evas_obj_image_load_error_get());
@@ -235,7 +235,7 @@ main(void)
/* solid white clipper (note that it's the default color for a
* rectangle) - it won't change clippees' colors, then (multiplying
* by 255) */
- d.clipper = eo_add(EVAS_RECTANGLE_CLASS, d.canvas);
+ eo_add(d.clipper, EVAS_RECTANGLE_CLASS, d.canvas);
eo_do(d.clipper,
efl_gfx_position_set( WIDTH / 4, HEIGHT / 4),