diff options
author | Tom Hacohen <tom@stosb.com> | 2016-03-11 12:40:21 +0000 |
---|---|---|
committer | Tom Hacohen <tom@stosb.com> | 2016-03-11 12:40:21 +0000 |
commit | a927cdd1a41f418dd1ca6f5db5138e629b1b3758 (patch) | |
tree | 8392f28ad2068908d4edeef73c23642c97f91813 | |
parent | 1c99584bcb72aabedfb7e9696bae1661c14ddd0c (diff) |
Revert "Automatic migration to the new eo_add syntax."
We reverted those changes.
This reverts commit 1c99584bcb72aabedfb7e9696bae1661c14ddd0c.
114 files changed, 169 insertions, 169 deletions
diff --git a/src/bin/about.c b/src/bin/about.c index 57882de..f225b4a 100644 --- a/src/bin/about.c +++ b/src/bin/about.c | |||
@@ -8,7 +8,7 @@ _setup(void) | |||
8 | Evas_Object *o; | 8 | Evas_Object *o; |
9 | Evas_Textblock_Style *st; | 9 | Evas_Textblock_Style *st; |
10 | 10 | ||
11 | eo_add(&o, EVAS_TEXTBLOCK_CLASS, evas); | 11 | o = eo_add(EVAS_TEXTBLOCK_CLASS, evas); |
12 | efl_gfx_position_set(o, 10, 40); | 12 | efl_gfx_position_set(o, 10, 40); |
13 | efl_gfx_size_set(o, win_w - 20, win_h - 50); | 13 | efl_gfx_size_set(o, win_w - 20, win_h - 50); |
14 | efl_gfx_visible_set(o, EINA_TRUE); | 14 | efl_gfx_visible_set(o, EINA_TRUE); |
diff --git a/src/bin/image_blend_border.c b/src/bin/image_blend_border.c index 5f04033..9cff6df 100644 --- a/src/bin/image_blend_border.c +++ b/src/bin/image_blend_border.c | |||
@@ -23,7 +23,7 @@ static void _setup(void) | |||
23 | Evas_Object *o; | 23 | Evas_Object *o; |
24 | for (i = 0; i < OBNUM; i++) | 24 | for (i = 0; i < OBNUM; i++) |
25 | { | 25 | { |
26 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 26 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
27 | o_images[i] = o; | 27 | o_images[i] = o; |
28 | efl_file_set(o, build_path("bar.png"), NULL); | 28 | efl_file_set(o, build_path("bar.png"), NULL); |
29 | evas_obj_image_border_set(o, 6, 6, 6, 6); | 29 | evas_obj_image_border_set(o, 6, 6, 6, 6); |
diff --git a/src/bin/image_blend_border_recolor.c b/src/bin/image_blend_border_recolor.c index ed172e1..806cab7 100644 --- a/src/bin/image_blend_border_recolor.c +++ b/src/bin/image_blend_border_recolor.c | |||
@@ -23,7 +23,7 @@ static void _setup(void) | |||
23 | Evas_Object *o; | 23 | Evas_Object *o; |
24 | for (i = 0; i < OBNUM; i++) | 24 | for (i = 0; i < OBNUM; i++) |
25 | { | 25 | { |
26 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 26 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
27 | o_images[i] = o; | 27 | o_images[i] = o; |
28 | efl_file_set(o, build_path("pan.png"), NULL); | 28 | efl_file_set(o, build_path("pan.png"), NULL); |
29 | efl_gfx_color_set(o, 64, 64, 64, 255); | 29 | efl_gfx_color_set(o, 64, 64, 64, 255); |
diff --git a/src/bin/image_blend_fade_pow2_unscaled.c b/src/bin/image_blend_fade_pow2_unscaled.c index 8c0445d..48964bf 100644 --- a/src/bin/image_blend_fade_pow2_unscaled.c +++ b/src/bin/image_blend_fade_pow2_unscaled.c | |||
@@ -25,7 +25,7 @@ static void _setup(void) | |||
25 | { | 25 | { |
26 | int a; | 26 | int a; |
27 | 27 | ||
28 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 28 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
29 | o_images[i] = o; | 29 | o_images[i] = o; |
30 | efl_file_set(o, build_path("logo.png"), NULL); | 30 | efl_file_set(o, build_path("logo.png"), NULL); |
31 | efl_gfx_fill_set(o, 0, 0, 120, 160); | 31 | efl_gfx_fill_set(o, 0, 0, 120, 160); |
diff --git a/src/bin/image_blend_fade_unscaled.c b/src/bin/image_blend_fade_unscaled.c index eaff498..479e133 100644 --- a/src/bin/image_blend_fade_unscaled.c +++ b/src/bin/image_blend_fade_unscaled.c | |||
@@ -24,7 +24,7 @@ static void _setup(void) | |||
24 | for (i = 0; i < OBNUM; i++) | 24 | for (i = 0; i < OBNUM; i++) |
25 | { | 25 | { |
26 | int a; | 26 | int a; |
27 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 27 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
28 | o_images[i] = o; | 28 | o_images[i] = o; |
29 | a = rnd()&0xff; | 29 | a = rnd()&0xff; |
30 | efl_file_set(o, build_path("logo.png"), NULL); | 30 | efl_file_set(o, build_path("logo.png"), NULL); |
diff --git a/src/bin/image_blend_many_smooth_same_scaled.c b/src/bin/image_blend_many_smooth_same_scaled.c index 956db17..7fb6d5e 100644 --- a/src/bin/image_blend_many_smooth_same_scaled.c +++ b/src/bin/image_blend_many_smooth_same_scaled.c | |||
@@ -25,7 +25,7 @@ static void _setup(void) | |||
25 | Evas_Object *o; | 25 | Evas_Object *o; |
26 | for (i = 0; i < MANYNUM; i++) | 26 | for (i = 0; i < MANYNUM; i++) |
27 | { | 27 | { |
28 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 28 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
29 | o_images[i] = o; | 29 | o_images[i] = o; |
30 | n = rnd() % 100; | 30 | n = rnd() % 100; |
31 | w = 3 + ((n * (60 - 3)) / 100); | 31 | w = 3 + ((n * (60 - 3)) / 100); |
diff --git a/src/bin/image_blend_nearest_same_scaled.c b/src/bin/image_blend_nearest_same_scaled.c index 7033dbb..46dc638 100644 --- a/src/bin/image_blend_nearest_same_scaled.c +++ b/src/bin/image_blend_nearest_same_scaled.c | |||
@@ -23,7 +23,7 @@ static void _setup(void) | |||
23 | Evas_Object *o; | 23 | Evas_Object *o; |
24 | for (i = 0; i < OBNUM; i++) | 24 | for (i = 0; i < OBNUM; i++) |
25 | { | 25 | { |
26 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 26 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
27 | o_images[i] = o; | 27 | o_images[i] = o; |
28 | efl_file_set(o, build_path("logo.png"), NULL); | 28 | efl_file_set(o, build_path("logo.png"), NULL); |
29 | efl_image_smooth_scale_set(o, 0); | 29 | efl_image_smooth_scale_set(o, 0); |
diff --git a/src/bin/image_blend_nearest_scaled.c b/src/bin/image_blend_nearest_scaled.c index d6e9d96..43b0fa1 100644 --- a/src/bin/image_blend_nearest_scaled.c +++ b/src/bin/image_blend_nearest_scaled.c | |||
@@ -23,7 +23,7 @@ static void _setup(void) | |||
23 | Evas_Object *o; | 23 | Evas_Object *o; |
24 | for (i = 0; i < OBNUM; i++) | 24 | for (i = 0; i < OBNUM; i++) |
25 | { | 25 | { |
26 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 26 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
27 | o_images[i] = o; | 27 | o_images[i] = o; |
28 | efl_file_set(o, build_path("logo.png"), NULL); | 28 | efl_file_set(o, build_path("logo.png"), NULL); |
29 | efl_image_smooth_scale_set(o, 0); | 29 | efl_image_smooth_scale_set(o, 0); |
diff --git a/src/bin/image_blend_nearest_solid_same_scaled.c b/src/bin/image_blend_nearest_solid_same_scaled.c index 90a6e89..99fad1c 100644 --- a/src/bin/image_blend_nearest_solid_same_scaled.c +++ b/src/bin/image_blend_nearest_solid_same_scaled.c | |||
@@ -23,7 +23,7 @@ static void _setup(void) | |||
23 | Evas_Object *o; | 23 | Evas_Object *o; |
24 | for (i = 0; i < OBNUM; i++) | 24 | for (i = 0; i < OBNUM; i++) |
25 | { | 25 | { |
26 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 26 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
27 | o_images[i] = o; | 27 | o_images[i] = o; |
28 | efl_file_set(o, build_path("image.png"), NULL); | 28 | efl_file_set(o, build_path("image.png"), NULL); |
29 | efl_image_smooth_scale_set(o, 0); | 29 | efl_image_smooth_scale_set(o, 0); |
diff --git a/src/bin/image_blend_nearest_solid_scaled.c b/src/bin/image_blend_nearest_solid_scaled.c index a36df6c..561c52d 100644 --- a/src/bin/image_blend_nearest_solid_scaled.c +++ b/src/bin/image_blend_nearest_solid_scaled.c | |||
@@ -23,7 +23,7 @@ static void _setup(void) | |||
23 | Evas_Object *o; | 23 | Evas_Object *o; |
24 | for (i = 0; i < OBNUM; i++) | 24 | for (i = 0; i < OBNUM; i++) |
25 | { | 25 | { |
26 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 26 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
27 | o_images[i] = o; | 27 | o_images[i] = o; |
28 | efl_file_set(o, build_path("image.png"), NULL); | 28 | efl_file_set(o, build_path("image.png"), NULL); |
29 | efl_image_smooth_scale_set(o, 0); | 29 | efl_image_smooth_scale_set(o, 0); |
diff --git a/src/bin/image_blend_occlude1.c b/src/bin/image_blend_occlude1.c index 6c3cd41..1a7c59d 100644 --- a/src/bin/image_blend_occlude1.c +++ b/src/bin/image_blend_occlude1.c | |||
@@ -24,7 +24,7 @@ static void _setup(void) | |||
24 | srnd(); | 24 | srnd(); |
25 | for (i = 0; i < OBNUM; i++) | 25 | for (i = 0; i < OBNUM; i++) |
26 | { | 26 | { |
27 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 27 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
28 | o_images[i] = o; | 28 | o_images[i] = o; |
29 | if (i < (OBNUM / 2)) | 29 | if (i < (OBNUM / 2)) |
30 | { | 30 | { |
diff --git a/src/bin/image_blend_occlude1_few.c b/src/bin/image_blend_occlude1_few.c index d03c7d4..bec28f5 100644 --- a/src/bin/image_blend_occlude1_few.c +++ b/src/bin/image_blend_occlude1_few.c | |||
@@ -27,7 +27,7 @@ static void _setup(void) | |||
27 | srnd(); | 27 | srnd(); |
28 | for (i = 0; i < OBNUM; i++) | 28 | for (i = 0; i < OBNUM; i++) |
29 | { | 29 | { |
30 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 30 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
31 | o_images[i] = o; | 31 | o_images[i] = o; |
32 | if (i < (OBNUM / 2)) | 32 | if (i < (OBNUM / 2)) |
33 | { | 33 | { |
diff --git a/src/bin/image_blend_occlude1_many.c b/src/bin/image_blend_occlude1_many.c index b71adcc..00c988b 100644 --- a/src/bin/image_blend_occlude1_many.c +++ b/src/bin/image_blend_occlude1_many.c | |||
@@ -27,7 +27,7 @@ static void _setup(void) | |||
27 | srnd(); | 27 | srnd(); |
28 | for (i = 0; i < OBNUM; i++) | 28 | for (i = 0; i < OBNUM; i++) |
29 | { | 29 | { |
30 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 30 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
31 | o_images[i] = o; | 31 | o_images[i] = o; |
32 | if (i < (OBNUM / 2)) | 32 | if (i < (OBNUM / 2)) |
33 | { | 33 | { |
diff --git a/src/bin/image_blend_occlude1_very_many.c b/src/bin/image_blend_occlude1_very_many.c index 5bed1ce..65f7b77 100644 --- a/src/bin/image_blend_occlude1_very_many.c +++ b/src/bin/image_blend_occlude1_very_many.c | |||
@@ -27,7 +27,7 @@ static void _setup(void) | |||
27 | srnd(); | 27 | srnd(); |
28 | for (i = 0; i < OBNUM; i++) | 28 | for (i = 0; i < OBNUM; i++) |
29 | { | 29 | { |
30 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 30 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
31 | o_images[i] = o; | 31 | o_images[i] = o; |
32 | if (i < (OBNUM / 2)) | 32 | if (i < (OBNUM / 2)) |
33 | { | 33 | { |
diff --git a/src/bin/image_blend_occlude2.c b/src/bin/image_blend_occlude2.c index 9d2d064..7853fcd 100644 --- a/src/bin/image_blend_occlude2.c +++ b/src/bin/image_blend_occlude2.c | |||
@@ -24,7 +24,7 @@ static void _setup(void) | |||
24 | srnd(); | 24 | srnd(); |
25 | for (i = 0; i < OBNUM; i++) | 25 | for (i = 0; i < OBNUM; i++) |
26 | { | 26 | { |
27 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 27 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
28 | o_images[i] = o; | 28 | o_images[i] = o; |
29 | if (i & 0x1) | 29 | if (i & 0x1) |
30 | { | 30 | { |
diff --git a/src/bin/image_blend_occlude2_few.c b/src/bin/image_blend_occlude2_few.c index a7d0a56..4d5668d 100644 --- a/src/bin/image_blend_occlude2_few.c +++ b/src/bin/image_blend_occlude2_few.c | |||
@@ -27,7 +27,7 @@ static void _setup(void) | |||
27 | srnd(); | 27 | srnd(); |
28 | for (i = 0; i < OBNUM; i++) | 28 | for (i = 0; i < OBNUM; i++) |
29 | { | 29 | { |
30 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 30 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
31 | o_images[i] = o; | 31 | o_images[i] = o; |
32 | if (i & 0x1) | 32 | if (i & 0x1) |
33 | { | 33 | { |
diff --git a/src/bin/image_blend_occlude2_many.c b/src/bin/image_blend_occlude2_many.c index 351d2e6..b5e643a 100644 --- a/src/bin/image_blend_occlude2_many.c +++ b/src/bin/image_blend_occlude2_many.c | |||
@@ -27,7 +27,7 @@ static void _setup(void) | |||
27 | srnd(); | 27 | srnd(); |
28 | for (i = 0; i < OBNUM; i++) | 28 | for (i = 0; i < OBNUM; i++) |
29 | { | 29 | { |
30 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 30 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
31 | o_images[i] = o; | 31 | o_images[i] = o; |
32 | if (i & 0x1) | 32 | if (i & 0x1) |
33 | { | 33 | { |
diff --git a/src/bin/image_blend_occlude2_very_many.c b/src/bin/image_blend_occlude2_very_many.c index 26e9a23..3db2b7f 100644 --- a/src/bin/image_blend_occlude2_very_many.c +++ b/src/bin/image_blend_occlude2_very_many.c | |||
@@ -27,7 +27,7 @@ static void _setup(void) | |||
27 | srnd(); | 27 | srnd(); |
28 | for (i = 0; i < OBNUM; i++) | 28 | for (i = 0; i < OBNUM; i++) |
29 | { | 29 | { |
30 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 30 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
31 | o_images[i] = o; | 31 | o_images[i] = o; |
32 | if (i & 0x1) | 32 | if (i & 0x1) |
33 | { | 33 | { |
diff --git a/src/bin/image_blend_occlude3.c b/src/bin/image_blend_occlude3.c index dbf9093..6c60261 100644 --- a/src/bin/image_blend_occlude3.c +++ b/src/bin/image_blend_occlude3.c | |||
@@ -24,7 +24,7 @@ static void _setup(void) | |||
24 | srnd(); | 24 | srnd(); |
25 | for (i = 0; i < OBNUM; i++) | 25 | for (i = 0; i < OBNUM; i++) |
26 | { | 26 | { |
27 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 27 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
28 | o_images[i] = o; | 28 | o_images[i] = o; |
29 | if (i > (OBNUM / 2)) | 29 | if (i > (OBNUM / 2)) |
30 | { | 30 | { |
diff --git a/src/bin/image_blend_occlude3_few.c b/src/bin/image_blend_occlude3_few.c index 3be0e3d..daf4e68 100644 --- a/src/bin/image_blend_occlude3_few.c +++ b/src/bin/image_blend_occlude3_few.c | |||
@@ -27,7 +27,7 @@ static void _setup(void) | |||
27 | srnd(); | 27 | srnd(); |
28 | for (i = 0; i < OBNUM; i++) | 28 | for (i = 0; i < OBNUM; i++) |
29 | { | 29 | { |
30 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 30 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
31 | o_images[i] = o; | 31 | o_images[i] = o; |
32 | if (i > (OBNUM / 2)) | 32 | if (i > (OBNUM / 2)) |
33 | { | 33 | { |
diff --git a/src/bin/image_blend_occlude3_many.c b/src/bin/image_blend_occlude3_many.c index 2b48835..9485048 100644 --- a/src/bin/image_blend_occlude3_many.c +++ b/src/bin/image_blend_occlude3_many.c | |||
@@ -27,7 +27,7 @@ static void _setup(void) | |||
27 | srnd(); | 27 | srnd(); |
28 | for (i = 0; i < OBNUM; i++) | 28 | for (i = 0; i < OBNUM; i++) |
29 | { | 29 | { |
30 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 30 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
31 | o_images[i] = o; | 31 | o_images[i] = o; |
32 | if (i > (OBNUM / 2)) | 32 | if (i > (OBNUM / 2)) |
33 | { | 33 | { |
diff --git a/src/bin/image_blend_occlude3_very_many.c b/src/bin/image_blend_occlude3_very_many.c index 06b7c87..2b1423f 100644 --- a/src/bin/image_blend_occlude3_very_many.c +++ b/src/bin/image_blend_occlude3_very_many.c | |||
@@ -27,7 +27,7 @@ static void _setup(void) | |||
27 | srnd(); | 27 | srnd(); |
28 | for (i = 0; i < OBNUM; i++) | 28 | for (i = 0; i < OBNUM; i++) |
29 | { | 29 | { |
30 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 30 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
31 | o_images[i] = o; | 31 | o_images[i] = o; |
32 | if (i > (OBNUM / 2)) | 32 | if (i > (OBNUM / 2)) |
33 | { | 33 | { |
diff --git a/src/bin/image_blend_smooth_same_scaled.c b/src/bin/image_blend_smooth_same_scaled.c index 27f4d86..a71d5dc 100644 --- a/src/bin/image_blend_smooth_same_scaled.c +++ b/src/bin/image_blend_smooth_same_scaled.c | |||
@@ -23,7 +23,7 @@ static void _setup(void) | |||
23 | Evas_Object *o; | 23 | Evas_Object *o; |
24 | for (i = 0; i < OBNUM; i++) | 24 | for (i = 0; i < OBNUM; i++) |
25 | { | 25 | { |
26 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 26 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
27 | o_images[i] = o; | 27 | o_images[i] = o; |
28 | efl_file_set(o, build_path("logo.png"), NULL); | 28 | efl_file_set(o, build_path("logo.png"), NULL); |
29 | efl_image_smooth_scale_set(o, 1); | 29 | efl_image_smooth_scale_set(o, 1); |
diff --git a/src/bin/image_blend_smooth_scaled.c b/src/bin/image_blend_smooth_scaled.c index e1ef394..f6ccf32 100644 --- a/src/bin/image_blend_smooth_scaled.c +++ b/src/bin/image_blend_smooth_scaled.c | |||
@@ -23,7 +23,7 @@ static void _setup(void) | |||
23 | Evas_Object *o; | 23 | Evas_Object *o; |
24 | for (i = 0; i < OBNUM; i++) | 24 | for (i = 0; i < OBNUM; i++) |
25 | { | 25 | { |
26 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 26 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
27 | o_images[i] = o; | 27 | o_images[i] = o; |
28 | efl_file_set(o, build_path("logo.png"), NULL); | 28 | efl_file_set(o, build_path("logo.png"), NULL); |
29 | efl_image_smooth_scale_set(o, 1); | 29 | efl_image_smooth_scale_set(o, 1); |
diff --git a/src/bin/image_blend_smooth_solid_same_scaled.c b/src/bin/image_blend_smooth_solid_same_scaled.c index 185e144..54512d1 100644 --- a/src/bin/image_blend_smooth_solid_same_scaled.c +++ b/src/bin/image_blend_smooth_solid_same_scaled.c | |||
@@ -23,7 +23,7 @@ static void _setup(void) | |||
23 | Evas_Object *o; | 23 | Evas_Object *o; |
24 | for (i = 0; i < OBNUM; i++) | 24 | for (i = 0; i < OBNUM; i++) |
25 | { | 25 | { |
26 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 26 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
27 | o_images[i] = o; | 27 | o_images[i] = o; |
28 | efl_file_set(o, build_path("image.png"), NULL); | 28 | efl_file_set(o, build_path("image.png"), NULL); |
29 | efl_image_smooth_scale_set(o, 1); | 29 | efl_image_smooth_scale_set(o, 1); |
diff --git a/src/bin/image_blend_smooth_solid_scaled.c b/src/bin/image_blend_smooth_solid_scaled.c index 6e87219..6e3078a 100644 --- a/src/bin/image_blend_smooth_solid_scaled.c +++ b/src/bin/image_blend_smooth_solid_scaled.c | |||
@@ -23,7 +23,7 @@ static void _setup(void) | |||
23 | Evas_Object *o; | 23 | Evas_Object *o; |
24 | for (i = 0; i < OBNUM; i++) | 24 | for (i = 0; i < OBNUM; i++) |
25 | { | 25 | { |
26 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 26 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
27 | o_images[i] = o; | 27 | o_images[i] = o; |
28 | efl_file_set(o, build_path("image.png"), NULL); | 28 | efl_file_set(o, build_path("image.png"), NULL); |
29 | efl_image_smooth_scale_set(o, 1); | 29 | efl_image_smooth_scale_set(o, 1); |
diff --git a/src/bin/image_blend_solid_border.c b/src/bin/image_blend_solid_border.c index 4f92278..15430dc 100644 --- a/src/bin/image_blend_solid_border.c +++ b/src/bin/image_blend_solid_border.c | |||
@@ -23,7 +23,7 @@ static void _setup(void) | |||
23 | Evas_Object *o; | 23 | Evas_Object *o; |
24 | for (i = 0; i < OBNUM; i++) | 24 | for (i = 0; i < OBNUM; i++) |
25 | { | 25 | { |
26 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 26 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
27 | o_images[i] = o; | 27 | o_images[i] = o; |
28 | efl_file_set(o, build_path("frame.png"), NULL); | 28 | efl_file_set(o, build_path("frame.png"), NULL); |
29 | evas_obj_image_border_set(o, 8, 8, 8, 8); | 29 | evas_obj_image_border_set(o, 8, 8, 8, 8); |
diff --git a/src/bin/image_blend_solid_fade_pow2_unscaled.c b/src/bin/image_blend_solid_fade_pow2_unscaled.c index 624c8ee..74cf9ba 100644 --- a/src/bin/image_blend_solid_fade_pow2_unscaled.c +++ b/src/bin/image_blend_solid_fade_pow2_unscaled.c | |||
@@ -25,7 +25,7 @@ static void _setup(void) | |||
25 | { | 25 | { |
26 | int a; | 26 | int a; |
27 | 27 | ||
28 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 28 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
29 | o_images[i] = o; | 29 | o_images[i] = o; |
30 | efl_file_set(o, build_path("image.png"), NULL); | 30 | efl_file_set(o, build_path("image.png"), NULL); |
31 | efl_gfx_fill_set(o, 0, 0, 120, 160); | 31 | efl_gfx_fill_set(o, 0, 0, 120, 160); |
diff --git a/src/bin/image_blend_solid_fade_unscaled.c b/src/bin/image_blend_solid_fade_unscaled.c index 37c016b..a0f35d4 100644 --- a/src/bin/image_blend_solid_fade_unscaled.c +++ b/src/bin/image_blend_solid_fade_unscaled.c | |||
@@ -25,7 +25,7 @@ static void _setup(void) | |||
25 | { | 25 | { |
26 | int a; | 26 | int a; |
27 | 27 | ||
28 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 28 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
29 | o_images[i] = o; | 29 | o_images[i] = o; |
30 | efl_file_set(o, build_path("image.png"), NULL); | 30 | efl_file_set(o, build_path("image.png"), NULL); |
31 | efl_gfx_fill_set(o, 0, 0, 120, 160); | 31 | efl_gfx_fill_set(o, 0, 0, 120, 160); |
diff --git a/src/bin/image_blend_solid_middle_border.c b/src/bin/image_blend_solid_middle_border.c index c105a45..bf5636f 100644 --- a/src/bin/image_blend_solid_middle_border.c +++ b/src/bin/image_blend_solid_middle_border.c | |||
@@ -23,7 +23,7 @@ static void _setup(void) | |||
23 | Evas_Object *o; | 23 | Evas_Object *o; |
24 | for (i = 0; i < OBNUM; i++) | 24 | for (i = 0; i < OBNUM; i++) |
25 | { | 25 | { |
26 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 26 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
27 | o_images[i] = o; | 27 | o_images[i] = o; |
28 | efl_file_set(o, build_path("bar.png"), NULL); | 28 | efl_file_set(o, build_path("bar.png"), NULL); |
29 | evas_obj_image_border_set(o, 6, 6, 6, 6); | 29 | evas_obj_image_border_set(o, 6, 6, 6, 6); |
diff --git a/src/bin/image_blend_solid_middle_unscaled.c b/src/bin/image_blend_solid_middle_unscaled.c index 06bac88..d607b25 100644 --- a/src/bin/image_blend_solid_middle_unscaled.c +++ b/src/bin/image_blend_solid_middle_unscaled.c | |||
@@ -23,7 +23,7 @@ static void _setup(void) | |||
23 | Evas_Object *o; | 23 | Evas_Object *o; |
24 | for (i = 0; i < OBNUM; i++) | 24 | for (i = 0; i < OBNUM; i++) |
25 | { | 25 | { |
26 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 26 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
27 | o_images[i] = o; | 27 | o_images[i] = o; |
28 | efl_file_set(o, build_path("logo.png"), NULL); | 28 | efl_file_set(o, build_path("logo.png"), NULL); |
29 | efl_gfx_fill_set(o, 0, 0, 120, 160); | 29 | efl_gfx_fill_set(o, 0, 0, 120, 160); |
diff --git a/src/bin/image_blend_solid_unscaled.c b/src/bin/image_blend_solid_unscaled.c index 0970294..7ad5f02 100644 --- a/src/bin/image_blend_solid_unscaled.c +++ b/src/bin/image_blend_solid_unscaled.c | |||
@@ -23,7 +23,7 @@ static void _setup(void) | |||
23 | Evas_Object *o; | 23 | Evas_Object *o; |
24 | for (i = 0; i < OBNUM; i++) | 24 | for (i = 0; i < OBNUM; i++) |
25 | { | 25 | { |
26 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 26 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
27 | o_images[i] = o; | 27 | o_images[i] = o; |
28 | efl_file_set(o, build_path("image.png"), NULL); | 28 | efl_file_set(o, build_path("image.png"), NULL); |
29 | efl_gfx_fill_set(o, 0, 0, 120, 160); | 29 | efl_gfx_fill_set(o, 0, 0, 120, 160); |
diff --git a/src/bin/image_blend_unscaled.c b/src/bin/image_blend_unscaled.c index 2b7628b..139f565 100644 --- a/src/bin/image_blend_unscaled.c +++ b/src/bin/image_blend_unscaled.c | |||
@@ -23,7 +23,7 @@ static void _setup(void) | |||
23 | Evas_Object *o; | 23 | Evas_Object *o; |
24 | for (i = 0; i < OBNUM; i++) | 24 | for (i = 0; i < OBNUM; i++) |
25 | { | 25 | { |
26 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 26 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
27 | o_images[i] = o; | 27 | o_images[i] = o; |
28 | efl_file_set(o, build_path("logo.png"), NULL); | 28 | efl_file_set(o, build_path("logo.png"), NULL); |
29 | efl_gfx_fill_set(o, 0, 0, 120, 160); | 29 | efl_gfx_fill_set(o, 0, 0, 120, 160); |
diff --git a/src/bin/image_crossfade.c b/src/bin/image_crossfade.c index 30a0880..2345130 100644 --- a/src/bin/image_crossfade.c +++ b/src/bin/image_crossfade.c | |||
@@ -22,14 +22,14 @@ static void _setup(void) | |||
22 | { | 22 | { |
23 | Evas_Object *o; | 23 | Evas_Object *o; |
24 | 24 | ||
25 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 25 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
26 | o_images[0] = o; | 26 | o_images[0] = o; |
27 | efl_file_set(o, build_path("im1.png"), NULL); | 27 | efl_file_set(o, build_path("im1.png"), NULL); |
28 | efl_gfx_fill_set(o, 0, 0, 720, 420); | 28 | efl_gfx_fill_set(o, 0, 0, 720, 420); |
29 | efl_gfx_size_set(o, 720, 420); | 29 | efl_gfx_size_set(o, 720, 420); |
30 | efl_gfx_visible_set(o, EINA_TRUE); | 30 | efl_gfx_visible_set(o, EINA_TRUE); |
31 | 31 | ||
32 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 32 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
33 | o_images[1] = o; | 33 | o_images[1] = o; |
34 | efl_file_set(o, build_path("im2.png"), NULL); | 34 | efl_file_set(o, build_path("im2.png"), NULL); |
35 | efl_gfx_fill_set(o, 0, 0, 720, 420); | 35 | efl_gfx_fill_set(o, 0, 0, 720, 420); |
diff --git a/src/bin/image_data_argb.c b/src/bin/image_data_argb.c index e849490..9d1bca5 100644 --- a/src/bin/image_data_argb.c +++ b/src/bin/image_data_argb.c | |||
@@ -24,7 +24,7 @@ static void _setup(void) | |||
24 | Evas_Object *o; | 24 | Evas_Object *o; |
25 | for (i = 0; i < 1; i++) | 25 | for (i = 0; i < 1; i++) |
26 | { | 26 | { |
27 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 27 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
28 | o_images[i] = o; | 28 | o_images[i] = o; |
29 | evas_obj_image_content_hint_set(o, EVAS_IMAGE_CONTENT_HINT_DYNAMIC); | 29 | evas_obj_image_content_hint_set(o, EVAS_IMAGE_CONTENT_HINT_DYNAMIC); |
30 | evas_obj_image_colorspace_set(o, EVAS_COLORSPACE_ARGB8888); | 30 | evas_obj_image_colorspace_set(o, EVAS_COLORSPACE_ARGB8888); |
diff --git a/src/bin/image_data_argb_alpha.c b/src/bin/image_data_argb_alpha.c index 95f9b37..714e092 100644 --- a/src/bin/image_data_argb_alpha.c +++ b/src/bin/image_data_argb_alpha.c | |||
@@ -24,7 +24,7 @@ static void _setup(void) | |||
24 | Evas_Object *o; | 24 | Evas_Object *o; |
25 | for (i = 0; i < 1; i++) | 25 | for (i = 0; i < 1; i++) |
26 | { | 26 | { |
27 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 27 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
28 | o_images[i] = o; | 28 | o_images[i] = o; |
29 | evas_obj_image_content_hint_set(o, EVAS_IMAGE_CONTENT_HINT_DYNAMIC); | 29 | evas_obj_image_content_hint_set(o, EVAS_IMAGE_CONTENT_HINT_DYNAMIC); |
30 | evas_obj_image_colorspace_set(o, EVAS_COLORSPACE_ARGB8888); | 30 | evas_obj_image_colorspace_set(o, EVAS_COLORSPACE_ARGB8888); |
diff --git a/src/bin/image_data_ycbcr601pl.c b/src/bin/image_data_ycbcr601pl.c index a6e59e1..42a20a5 100644 --- a/src/bin/image_data_ycbcr601pl.c +++ b/src/bin/image_data_ycbcr601pl.c | |||
@@ -27,7 +27,7 @@ static void _setup(void) | |||
27 | Evas_Object *o; | 27 | Evas_Object *o; |
28 | for (i = 0; i < 1; i++) | 28 | for (i = 0; i < 1; i++) |
29 | { | 29 | { |
30 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 30 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
31 | o_images[i] = o; | 31 | o_images[i] = o; |
32 | evas_obj_image_content_hint_set(o, EVAS_IMAGE_CONTENT_HINT_DYNAMIC); | 32 | evas_obj_image_content_hint_set(o, EVAS_IMAGE_CONTENT_HINT_DYNAMIC); |
33 | evas_obj_image_colorspace_set(o, EVAS_COLORSPACE_YCBCR422P601_PL); | 33 | evas_obj_image_colorspace_set(o, EVAS_COLORSPACE_YCBCR422P601_PL); |
diff --git a/src/bin/image_data_ycbcr601pl_map_nearest_solid_rotate.c b/src/bin/image_data_ycbcr601pl_map_nearest_solid_rotate.c index 7dc61f9..bc9840c 100644 --- a/src/bin/image_data_ycbcr601pl_map_nearest_solid_rotate.c +++ b/src/bin/image_data_ycbcr601pl_map_nearest_solid_rotate.c | |||
@@ -27,7 +27,7 @@ static void _setup(void) | |||
27 | Evas_Object *o; | 27 | Evas_Object *o; |
28 | for (i = 0; i < 1; i++) | 28 | for (i = 0; i < 1; i++) |
29 | { | 29 | { |
30 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 30 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
31 | o_images[i] = o; | 31 | o_images[i] = o; |
32 | evas_obj_image_content_hint_set(o, EVAS_IMAGE_CONTENT_HINT_DYNAMIC); | 32 | evas_obj_image_content_hint_set(o, EVAS_IMAGE_CONTENT_HINT_DYNAMIC); |
33 | evas_obj_image_colorspace_set(o, EVAS_COLORSPACE_YCBCR422P601_PL); | 33 | evas_obj_image_colorspace_set(o, EVAS_COLORSPACE_YCBCR422P601_PL); |
diff --git a/src/bin/image_data_ycbcr601pl_map_solid_rotate.c b/src/bin/image_data_ycbcr601pl_map_solid_rotate.c index 4e293d5..c6e60bc 100644 --- a/src/bin/image_data_ycbcr601pl_map_solid_rotate.c +++ b/src/bin/image_data_ycbcr601pl_map_solid_rotate.c | |||
@@ -27,7 +27,7 @@ static void _setup(void) | |||
27 | Evas_Object *o; | 27 | Evas_Object *o; |
28 | for (i = 0; i < 1; i++) | 28 | for (i = 0; i < 1; i++) |
29 | { | 29 | { |
30 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 30 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
31 | o_images[i] = o; | 31 | o_images[i] = o; |
32 | evas_obj_image_content_hint_set(o, EVAS_IMAGE_CONTENT_HINT_DYNAMIC); | 32 | evas_obj_image_content_hint_set(o, EVAS_IMAGE_CONTENT_HINT_DYNAMIC); |
33 | evas_obj_image_colorspace_set(o, EVAS_COLORSPACE_YCBCR422P601_PL); | 33 | evas_obj_image_colorspace_set(o, EVAS_COLORSPACE_YCBCR422P601_PL); |
diff --git a/src/bin/image_data_ycbcr601pl_wide_stride.c b/src/bin/image_data_ycbcr601pl_wide_stride.c index cb2ad71..f6690b9 100644 --- a/src/bin/image_data_ycbcr601pl_wide_stride.c +++ b/src/bin/image_data_ycbcr601pl_wide_stride.c | |||
@@ -27,7 +27,7 @@ static void _setup(void) | |||
27 | Evas_Object *o; | 27 | Evas_Object *o; |
28 | for (i = 0; i < 1; i++) | 28 | for (i = 0; i < 1; i++) |
29 | { | 29 | { |
30 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 30 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
31 | o_images[i] = o; | 31 | o_images[i] = o; |
32 | evas_obj_image_content_hint_set(o, EVAS_IMAGE_CONTENT_HINT_DYNAMIC); | 32 | evas_obj_image_content_hint_set(o, EVAS_IMAGE_CONTENT_HINT_DYNAMIC); |
33 | evas_obj_image_colorspace_set(o, EVAS_COLORSPACE_YCBCR422P601_PL); | 33 | evas_obj_image_colorspace_set(o, EVAS_COLORSPACE_YCBCR422P601_PL); |
diff --git a/src/bin/image_map_3d_1.c b/src/bin/image_map_3d_1.c index f92a2d2..03f0986 100644 --- a/src/bin/image_map_3d_1.c +++ b/src/bin/image_map_3d_1.c | |||
@@ -54,7 +54,7 @@ _cube_new(Evas_Coord w, Evas_Coord h, Evas_Coord d) | |||
54 | { | 54 | { |
55 | Evas_Object *o; | 55 | Evas_Object *o; |
56 | char buf[256]; | 56 | char buf[256]; |
57 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 57 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
58 | c->side[i].o = o; | 58 | c->side[i].o = o; |
59 | snprintf(buf, sizeof(buf), "cube%i.png", i + 1); | 59 | snprintf(buf, sizeof(buf), "cube%i.png", i + 1); |
60 | efl_file_set(o, build_path(buf), NULL); | 60 | efl_file_set(o, build_path(buf), NULL); |
diff --git a/src/bin/image_map_3d_2.c b/src/bin/image_map_3d_2.c index 1f27e45..e925987 100644 --- a/src/bin/image_map_3d_2.c +++ b/src/bin/image_map_3d_2.c | |||
@@ -54,7 +54,7 @@ _cube_new(Evas_Coord w, Evas_Coord h, Evas_Coord d) | |||
54 | { | 54 | { |
55 | Evas_Object *o; | 55 | Evas_Object *o; |
56 | char buf[256]; | 56 | char buf[256]; |
57 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 57 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
58 | c->side[i].o = o; | 58 | c->side[i].o = o; |
59 | snprintf(buf, sizeof(buf), "cube%i.png", i + 1); | 59 | snprintf(buf, sizeof(buf), "cube%i.png", i + 1); |
60 | efl_file_set(o, build_path(buf), NULL); | 60 | efl_file_set(o, build_path(buf), NULL); |
diff --git a/src/bin/image_map_3d_3.c b/src/bin/image_map_3d_3.c index 785292c..c7acb0f 100644 --- a/src/bin/image_map_3d_3.c +++ b/src/bin/image_map_3d_3.c | |||
@@ -54,7 +54,7 @@ _cube_new(Evas_Coord w, Evas_Coord h, Evas_Coord d) | |||
54 | { | 54 | { |
55 | Evas_Object *o; | 55 | Evas_Object *o; |
56 | char buf[256]; | 56 | char buf[256]; |
57 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 57 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
58 | c->side[i].o = o; | 58 | c->side[i].o = o; |
59 | snprintf(buf, sizeof(buf), "cube%i.png", i + 1); | 59 | snprintf(buf, sizeof(buf), "cube%i.png", i + 1); |
60 | efl_file_set(o, build_path(buf), NULL); | 60 | efl_file_set(o, build_path(buf), NULL); |
diff --git a/src/bin/image_map_3d_4.c b/src/bin/image_map_3d_4.c index c6b03f0..3ccf903 100644 --- a/src/bin/image_map_3d_4.c +++ b/src/bin/image_map_3d_4.c | |||
@@ -54,7 +54,7 @@ _cube_new(Evas_Coord w, Evas_Coord h, Evas_Coord d) | |||
54 | { | 54 | { |
55 | Evas_Object *o; | 55 | Evas_Object *o; |
56 | char buf[256]; | 56 | char buf[256]; |
57 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 57 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
58 | c->side[i].o = o; | 58 | c->side[i].o = o; |
59 | snprintf(buf, sizeof(buf), "cube%i.png", i + 1); | 59 | snprintf(buf, sizeof(buf), "cube%i.png", i + 1); |
60 | efl_file_set(o, build_path(buf), NULL); | 60 | efl_file_set(o, build_path(buf), NULL); |
diff --git a/src/bin/image_map_3d_5.c b/src/bin/image_map_3d_5.c index 6a0bacb..529104c 100644 --- a/src/bin/image_map_3d_5.c +++ b/src/bin/image_map_3d_5.c | |||
@@ -54,7 +54,7 @@ _cube_new(Evas_Coord w, Evas_Coord h, Evas_Coord d) | |||
54 | { | 54 | { |
55 | Evas_Object *o; | 55 | Evas_Object *o; |
56 | char buf[256]; | 56 | char buf[256]; |
57 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 57 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
58 | c->side[i].o = o; | 58 | c->side[i].o = o; |
59 | snprintf(buf, sizeof(buf), "im%i.png", (i % 2) + 1); | 59 | snprintf(buf, sizeof(buf), "im%i.png", (i % 2) + 1); |
60 | efl_file_set(o, build_path(buf), NULL); | 60 | efl_file_set(o, build_path(buf), NULL); |
diff --git a/src/bin/image_map_3d_6.c b/src/bin/image_map_3d_6.c index 2f8298d..a6c84cf 100644 --- a/src/bin/image_map_3d_6.c +++ b/src/bin/image_map_3d_6.c | |||
@@ -54,7 +54,7 @@ _cube_new(Evas_Coord w, Evas_Coord h, Evas_Coord d) | |||
54 | { | 54 | { |
55 | Evas_Object *o; | 55 | Evas_Object *o; |
56 | char buf[256]; | 56 | char buf[256]; |
57 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 57 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
58 | c->side[i].o = o; | 58 | c->side[i].o = o; |
59 | snprintf(buf, sizeof(buf), "im%i.png", (i % 2) + 1); | 59 | snprintf(buf, sizeof(buf), "im%i.png", (i % 2) + 1); |
60 | efl_file_set(o, build_path(buf), NULL); | 60 | efl_file_set(o, build_path(buf), NULL); |
diff --git a/src/bin/image_map_3d_flow.c b/src/bin/image_map_3d_flow.c index 6c726c2..6f60976 100644 --- a/src/bin/image_map_3d_flow.c +++ b/src/bin/image_map_3d_flow.c | |||
@@ -29,7 +29,7 @@ static void _setup(void) | |||
29 | { | 29 | { |
30 | char buf[256]; | 30 | char buf[256]; |
31 | 31 | ||
32 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 32 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
33 | o_images[i] = o; | 33 | o_images[i] = o; |
34 | snprintf(buf, sizeof(buf), "cube%i.png", (i % 6) + 1); | 34 | snprintf(buf, sizeof(buf), "cube%i.png", (i % 6) + 1); |
35 | efl_file_set(o, build_path(buf), NULL); | 35 | efl_file_set(o, build_path(buf), NULL); |
@@ -38,7 +38,7 @@ static void _setup(void) | |||
38 | efl_image_smooth_scale_set(o, 0); | 38 | efl_image_smooth_scale_set(o, 0); |
39 | efl_gfx_visible_set(o, EINA_TRUE); | 39 | efl_gfx_visible_set(o, EINA_TRUE); |
40 | 40 | ||
41 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 41 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
42 | o_reflec[i] = o; | 42 | o_reflec[i] = o; |
43 | snprintf(buf, sizeof(buf), "cube%i.png", (i % 6) + 1); | 43 | snprintf(buf, sizeof(buf), "cube%i.png", (i % 6) + 1); |
44 | efl_file_set(o, build_path(buf), NULL); | 44 | efl_file_set(o, build_path(buf), NULL); |
diff --git a/src/bin/image_map_color_alpha_nearest_rotate.c b/src/bin/image_map_color_alpha_nearest_rotate.c index 3b50c7d..c59442b 100644 --- a/src/bin/image_map_color_alpha_nearest_rotate.c +++ b/src/bin/image_map_color_alpha_nearest_rotate.c | |||
@@ -24,7 +24,7 @@ static void _setup(void) | |||
24 | Evas_Object *o; | 24 | Evas_Object *o; |
25 | for (i = 0; i < (OBNUM / 2); i++) | 25 | for (i = 0; i < (OBNUM / 2); i++) |
26 | { | 26 | { |
27 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 27 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
28 | o_images[i] = o; | 28 | o_images[i] = o; |
29 | efl_file_set(o, build_path("logo.png"), NULL); | 29 | efl_file_set(o, build_path("logo.png"), NULL); |
30 | efl_gfx_fill_set(o, 0, 0, 120, 160); | 30 | efl_gfx_fill_set(o, 0, 0, 120, 160); |
diff --git a/src/bin/image_map_color_alpha_nearest_solid_rotate.c b/src/bin/image_map_color_alpha_nearest_solid_rotate.c index 52e522c..230bf90 100644 --- a/src/bin/image_map_color_alpha_nearest_solid_rotate.c +++ b/src/bin/image_map_color_alpha_nearest_solid_rotate.c | |||
@@ -24,7 +24,7 @@ static void _setup(void) | |||
24 | Evas_Object *o; | 24 | Evas_Object *o; |
25 | for (i = 0; i < (OBNUM / 2); i++) | 25 | for (i = 0; i < (OBNUM / 2); i++) |
26 | { | 26 | { |
27 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 27 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
28 | o_images[i] = o; | 28 | o_images[i] = o; |
29 | efl_file_set(o, build_path("image.png"), NULL); | 29 | efl_file_set(o, build_path("image.png"), NULL); |
30 | efl_gfx_fill_set(o, 0, 0, 120, 160); | 30 | efl_gfx_fill_set(o, 0, 0, 120, 160); |
diff --git a/src/bin/image_map_color_alpha_rotate.c b/src/bin/image_map_color_alpha_rotate.c index a9d40a8..7483e2e 100644 --- a/src/bin/image_map_color_alpha_rotate.c +++ b/src/bin/image_map_color_alpha_rotate.c | |||
@@ -24,7 +24,7 @@ static void _setup(void) | |||
24 | Evas_Object *o; | 24 | Evas_Object *o; |
25 | for (i = 0; i < (OBNUM / 2); i++) | 25 | for (i = 0; i < (OBNUM / 2); i++) |
26 | { | 26 | { |
27 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 27 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
28 | o_images[i] = o; | 28 | o_images[i] = o; |
29 | efl_file_set(o, build_path("logo.png"), NULL); | 29 | efl_file_set(o, build_path("logo.png"), NULL); |
30 | efl_gfx_fill_set(o, 0, 0, 120, 160); | 30 | efl_gfx_fill_set(o, 0, 0, 120, 160); |
diff --git a/src/bin/image_map_color_alpha_solid_rotate.c b/src/bin/image_map_color_alpha_solid_rotate.c index 67a801a..075a10a 100644 --- a/src/bin/image_map_color_alpha_solid_rotate.c +++ b/src/bin/image_map_color_alpha_solid_rotate.c | |||
@@ -24,7 +24,7 @@ static void _setup(void) | |||
24 | Evas_Object *o; | 24 | Evas_Object *o; |
25 | for (i = 0; i < (OBNUM / 2); i++) | 25 | for (i = 0; i < (OBNUM / 2); i++) |
26 | { | 26 | { |
27 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 27 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
28 | o_images[i] = o; | 28 | o_images[i] = o; |
29 | efl_file_set(o, build_path("image.png"), NULL); | 29 | efl_file_set(o, build_path("image.png"), NULL); |
30 | efl_gfx_fill_set(o, 0, 0, 120, 160); | 30 | efl_gfx_fill_set(o, 0, 0, 120, 160); |
diff --git a/src/bin/image_map_color_nearest_rotate.c b/src/bin/image_map_color_nearest_rotate.c index addac92..e1b0038 100644 --- a/src/bin/image_map_color_nearest_rotate.c +++ b/src/bin/image_map_color_nearest_rotate.c | |||
@@ -24,7 +24,7 @@ static void _setup(void) | |||
24 | Evas_Object *o; | 24 | Evas_Object *o; |
25 | for (i = 0; i < (OBNUM / 2); i++) | 25 | for (i = 0; i < (OBNUM / 2); i++) |
26 | { | 26 | { |
27 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 27 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
28 | o_images[i] = o; | 28 | o_images[i] = o; |
29 | efl_file_set(o, build_path("logo.png"), NULL); | 29 | efl_file_set(o, build_path("logo.png"), NULL); |
30 | efl_gfx_fill_set(o, 0, 0, 120, 160); | 30 | efl_gfx_fill_set(o, 0, 0, 120, 160); |
diff --git a/src/bin/image_map_color_nearest_solid_rotate.c b/src/bin/image_map_color_nearest_solid_rotate.c index 48415a0..c776155 100644 --- a/src/bin/image_map_color_nearest_solid_rotate.c +++ b/src/bin/image_map_color_nearest_solid_rotate.c | |||
@@ -24,7 +24,7 @@ static void _setup(void) | |||
24 | Evas_Object *o; | 24 | Evas_Object *o; |
25 | for (i = 0; i < (OBNUM / 2); i++) | 25 | for (i = 0; i < (OBNUM / 2); i++) |
26 | { | 26 | { |
27 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 27 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
28 | o_images[i] = o; | 28 | o_images[i] = o; |
29 | efl_file_set(o, build_path("image.png"), NULL); | 29 | efl_file_set(o, build_path("image.png"), NULL); |
30 | efl_gfx_fill_set(o, 0, 0, 120, 160); | 30 | efl_gfx_fill_set(o, 0, 0, 120, 160); |
diff --git a/src/bin/image_map_color_rotate.c b/src/bin/image_map_color_rotate.c index 35a6741..2f5053c 100644 --- a/src/bin/image_map_color_rotate.c +++ b/src/bin/image_map_color_rotate.c | |||
@@ -24,7 +24,7 @@ static void _setup(void) | |||
24 | Evas_Object *o; | 24 | Evas_Object *o; |
25 | for (i = 0; i < (OBNUM / 2); i++) | 25 | for (i = 0; i < (OBNUM / 2); i++) |
26 | { | 26 | { |
27 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 27 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
28 | o_images[i] = o; | 28 | o_images[i] = o; |
29 | efl_file_set(o, build_path("logo.png"), NULL); | 29 | efl_file_set(o, build_path("logo.png"), NULL); |
30 | efl_gfx_fill_set(o, 0, 0, 120, 160); | 30 | efl_gfx_fill_set(o, 0, 0, 120, 160); |
diff --git a/src/bin/image_map_color_solid_rotate.c b/src/bin/image_map_color_solid_rotate.c index 075c044..ad7690e 100644 --- a/src/bin/image_map_color_solid_rotate.c +++ b/src/bin/image_map_color_solid_rotate.c | |||
@@ -24,7 +24,7 @@ static void _setup(void) | |||
24 | Evas_Object *o; | 24 | Evas_Object *o; |
25 | for (i = 0; i < (OBNUM / 2); i++) | 25 | for (i = 0; i < (OBNUM / 2); i++) |
26 | { | 26 | { |
27 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 27 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
28 | o_images[i] = o; | 28 | o_images[i] = o; |
29 | efl_file_set(o, build_path("image.png"), NULL); | 29 | efl_file_set(o, build_path("image.png"), NULL); |
30 | efl_gfx_fill_set(o, 0, 0, 120, 160); | 30 | efl_gfx_fill_set(o, 0, 0, 120, 160); |
diff --git a/src/bin/image_map_nearest_rotate.c b/src/bin/image_map_nearest_rotate.c index b959fdc..ead9e9b 100644 --- a/src/bin/image_map_nearest_rotate.c +++ b/src/bin/image_map_nearest_rotate.c | |||
@@ -24,7 +24,7 @@ static void _setup(void) | |||
24 | Evas_Object *o; | 24 | Evas_Object *o; |
25 | for (i = 0; i < (OBNUM / 2); i++) | 25 | for (i = 0; i < (OBNUM / 2); i++) |
26 | { | 26 | { |
27 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 27 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
28 | o_images[i] = o; | 28 | o_images[i] = o; |
29 | efl_file_set(o, build_path("logo.png"), NULL); | 29 | efl_file_set(o, build_path("logo.png"), NULL); |
30 | efl_gfx_fill_set(o, 0, 0, 120, 160); | 30 | efl_gfx_fill_set(o, 0, 0, 120, 160); |
diff --git a/src/bin/image_map_nearest_solid_rotate.c b/src/bin/image_map_nearest_solid_rotate.c index d058361..08f4db2 100644 --- a/src/bin/image_map_nearest_solid_rotate.c +++ b/src/bin/image_map_nearest_solid_rotate.c | |||
@@ -24,7 +24,7 @@ static void _setup(void) | |||
24 | Evas_Object *o; | 24 | Evas_Object *o; |
25 | for (i = 0; i < (OBNUM / 2); i++) | 25 | for (i = 0; i < (OBNUM / 2); i++) |
26 | { | 26 | { |
27 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 27 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
28 | o_images[i] = o; | 28 | o_images[i] = o; |
29 | efl_file_set(o, build_path("image.png"), NULL); | 29 | efl_file_set(o, build_path("image.png"), NULL); |
30 | efl_gfx_fill_set(o, 0, 0, 120, 160); | 30 | efl_gfx_fill_set(o, 0, 0, 120, 160); |
diff --git a/src/bin/image_map_rotate.c b/src/bin/image_map_rotate.c index 7a05604..2289781 100644 --- a/src/bin/image_map_rotate.c +++ b/src/bin/image_map_rotate.c | |||
@@ -24,7 +24,7 @@ static void _setup(void) | |||
24 | Evas_Object *o; | 24 | Evas_Object *o; |
25 | for (i = 0; i < (OBNUM / 2); i++) | 25 | for (i = 0; i < (OBNUM / 2); i++) |
26 | { | 26 | { |
27 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 27 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
28 | o_images[i] = o; | 28 | o_images[i] = o; |
29 | efl_file_set(o, build_path("logo.png"), NULL); | 29 | efl_file_set(o, build_path("logo.png"), NULL); |
30 | efl_gfx_fill_set(o, 0, 0, 120, 160); | 30 | efl_gfx_fill_set(o, 0, 0, 120, 160); |
diff --git a/src/bin/image_map_solid_rotate.c b/src/bin/image_map_solid_rotate.c index 796c8c1..38302b2 100644 --- a/src/bin/image_map_solid_rotate.c +++ b/src/bin/image_map_solid_rotate.c | |||
@@ -24,7 +24,7 @@ static void _setup(void) | |||
24 | Evas_Object *o; | 24 | Evas_Object *o; |
25 | for (i = 0; i < (OBNUM / 2); i++) | 25 | for (i = 0; i < (OBNUM / 2); i++) |
26 | { | 26 | { |
27 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 27 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
28 | o_images[i] = o; | 28 | o_images[i] = o; |
29 | efl_file_set(o, build_path("image.png"), NULL); | 29 | efl_file_set(o, build_path("image.png"), NULL); |
30 | efl_gfx_fill_set(o, 0, 0, 120, 160); | 30 | efl_gfx_fill_set(o, 0, 0, 120, 160); |
diff --git a/src/bin/image_mask.c b/src/bin/image_mask.c index 48595f7..b757324 100644 --- a/src/bin/image_mask.c +++ b/src/bin/image_mask.c | |||
@@ -23,14 +23,14 @@ static void _setup(void) | |||
23 | Evas_Object *o; | 23 | Evas_Object *o; |
24 | for (i = 0; i < OBNUM; i+= 2) | 24 | for (i = 0; i < OBNUM; i+= 2) |
25 | { | 25 | { |
26 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 26 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
27 | o_images[i] = o; | 27 | o_images[i] = o; |
28 | efl_file_set(o, build_path("image.png"), NULL); | 28 | efl_file_set(o, build_path("image.png"), NULL); |
29 | efl_gfx_fill_set(o, 0, 0, 120, 160); | 29 | efl_gfx_fill_set(o, 0, 0, 120, 160); |
30 | efl_gfx_size_set(o, 120, 160); | 30 | efl_gfx_size_set(o, 120, 160); |
31 | efl_gfx_visible_set(o, EINA_TRUE); | 31 | efl_gfx_visible_set(o, EINA_TRUE); |
32 | 32 | ||
33 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 33 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
34 | o_images[i + 1] = o; | 34 | o_images[i + 1] = o; |
35 | efl_file_set(o, build_path("e-logo.png"), NULL); | 35 | efl_file_set(o, build_path("e-logo.png"), NULL); |
36 | efl_gfx_fill_set(o, 0, 0, 120, 160); | 36 | efl_gfx_fill_set(o, 0, 0, 120, 160); |
diff --git a/src/bin/image_mask_10.c b/src/bin/image_mask_10.c index b17db12..03862d8 100644 --- a/src/bin/image_mask_10.c +++ b/src/bin/image_mask_10.c | |||
@@ -23,7 +23,7 @@ static void _setup(void) | |||
23 | int i; | 23 | int i; |
24 | Evas_Object *o; | 24 | Evas_Object *o; |
25 | 25 | ||
26 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 26 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
27 | o_mask = o; | 27 | o_mask = o; |
28 | efl_file_set(o, build_path("e-logo-mask.png"), NULL); | 28 | efl_file_set(o, build_path("e-logo-mask.png"), NULL); |
29 | efl_gfx_fill_set(o, 0, 0, 720, 420); | 29 | efl_gfx_fill_set(o, 0, 0, 720, 420); |
@@ -33,7 +33,7 @@ static void _setup(void) | |||
33 | 33 | ||
34 | for (i = 0; i < 1; i++) | 34 | for (i = 0; i < 1; i++) |
35 | { | 35 | { |
36 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 36 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
37 | o_images[i] = o; | 37 | o_images[i] = o; |
38 | efl_file_set(o, build_path("texture.png"), NULL); | 38 | efl_file_set(o, build_path("texture.png"), NULL); |
39 | efl_gfx_fill_set(o, 0, 0, win_w * 4, win_h * 4); | 39 | efl_gfx_fill_set(o, 0, 0, win_w * 4, win_h * 4); |
diff --git a/src/bin/image_mask_11.c b/src/bin/image_mask_11.c index 8f75b18..eadacb4 100644 --- a/src/bin/image_mask_11.c +++ b/src/bin/image_mask_11.c | |||
@@ -23,7 +23,7 @@ static void _setup(void) | |||
23 | int i; | 23 | int i; |
24 | Evas_Object *o; | 24 | Evas_Object *o; |
25 | 25 | ||
26 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 26 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
27 | o_mask = o; | 27 | o_mask = o; |
28 | efl_file_set(o, build_path("e-logo-mask.png"), NULL); | 28 | efl_file_set(o, build_path("e-logo-mask.png"), NULL); |
29 | efl_gfx_fill_set(o, 0, 0, 720, 420); | 29 | efl_gfx_fill_set(o, 0, 0, 720, 420); |
@@ -33,7 +33,7 @@ static void _setup(void) | |||
33 | 33 | ||
34 | for (i = 0; i < OBNUM; i++) | 34 | for (i = 0; i < OBNUM; i++) |
35 | { | 35 | { |
36 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 36 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
37 | o_images[i] = o; | 37 | o_images[i] = o; |
38 | efl_file_set(o, build_path("logo.png"), NULL); | 38 | efl_file_set(o, build_path("logo.png"), NULL); |
39 | efl_gfx_fill_set(o, 0, 0, 120, 160); | 39 | efl_gfx_fill_set(o, 0, 0, 120, 160); |
diff --git a/src/bin/image_mask_12.c b/src/bin/image_mask_12.c index 041e564..bba8768 100644 --- a/src/bin/image_mask_12.c +++ b/src/bin/image_mask_12.c | |||
@@ -23,7 +23,7 @@ static void _setup(void) | |||
23 | int i; | 23 | int i; |
24 | Evas_Object *o; | 24 | Evas_Object *o; |
25 | 25 | ||
26 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 26 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
27 | o_mask = o; | 27 | o_mask = o; |
28 | efl_file_set(o, build_path("e-logo-mask.png"), NULL); | 28 | efl_file_set(o, build_path("e-logo-mask.png"), NULL); |
29 | efl_gfx_fill_set(o, 0, 0, 720, 420); | 29 | efl_gfx_fill_set(o, 0, 0, 720, 420); |
@@ -33,7 +33,7 @@ static void _setup(void) | |||
33 | 33 | ||
34 | for (i = 0; i < OBNUM; i++) | 34 | for (i = 0; i < OBNUM; i++) |
35 | { | 35 | { |
36 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 36 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
37 | o_images[i] = o; | 37 | o_images[i] = o; |
38 | efl_file_set(o, build_path("logo.png"), NULL); | 38 | efl_file_set(o, build_path("logo.png"), NULL); |
39 | efl_gfx_fill_set(o, 0, 0, 120, 160); | 39 | efl_gfx_fill_set(o, 0, 0, 120, 160); |
diff --git a/src/bin/image_mask_13.c b/src/bin/image_mask_13.c index 0bebd5c..979b0a0 100644 --- a/src/bin/image_mask_13.c +++ b/src/bin/image_mask_13.c | |||
@@ -23,7 +23,7 @@ static void _setup(void) | |||
23 | int i; | 23 | int i; |
24 | Evas_Object *o; | 24 | Evas_Object *o; |
25 | 25 | ||
26 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 26 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
27 | o_mask = o; | 27 | o_mask = o; |
28 | efl_file_set(o, build_path("e-logo-mask.png"), NULL); | 28 | efl_file_set(o, build_path("e-logo-mask.png"), NULL); |
29 | efl_gfx_fill_set(o, 0, 0, 720, 420); | 29 | efl_gfx_fill_set(o, 0, 0, 720, 420); |
@@ -33,7 +33,7 @@ static void _setup(void) | |||
33 | 33 | ||
34 | for (i = 0; i < OBNUM; i++) | 34 | for (i = 0; i < OBNUM; i++) |
35 | { | 35 | { |
36 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 36 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
37 | o_images[i] = o; | 37 | o_images[i] = o; |
38 | efl_file_set(o, build_path("logo.png"), NULL); | 38 | efl_file_set(o, build_path("logo.png"), NULL); |
39 | efl_gfx_fill_set(o, 0, 0, 120, 160); | 39 | efl_gfx_fill_set(o, 0, 0, 120, 160); |
diff --git a/src/bin/image_mask_2.c b/src/bin/image_mask_2.c index eff5101..db87b90 100644 --- a/src/bin/image_mask_2.c +++ b/src/bin/image_mask_2.c | |||
@@ -23,14 +23,14 @@ static void _setup(void) | |||
23 | Evas_Object *o; | 23 | Evas_Object *o; |
24 | for (i = 0; i < OBNUM; i+= 2) | 24 | for (i = 0; i < OBNUM; i+= 2) |
25 | { | 25 | { |
26 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 26 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
27 | o_images[i] = o; | 27 | o_images[i] = o; |
28 | efl_file_set(o, build_path("image.png"), NULL); | 28 | efl_file_set(o, build_path("image.png"), NULL); |
29 | efl_gfx_fill_set(o, 0, 0, 120, 160); | 29 | efl_gfx_fill_set(o, 0, 0, 120, 160); |
30 | efl_gfx_size_set(o, 120, 160); | 30 | efl_gfx_size_set(o, 120, 160); |
31 | efl_gfx_visible_set(o, EINA_TRUE); | 31 | efl_gfx_visible_set(o, EINA_TRUE); |
32 | 32 | ||
33 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 33 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
34 | o_images[i + 1] = o; | 34 | o_images[i + 1] = o; |
35 | efl_file_set(o, build_path("e-logo-2.png"), NULL); | 35 | efl_file_set(o, build_path("e-logo-2.png"), NULL); |
36 | efl_gfx_fill_set(o, 0, 0, 120, 160); | 36 | efl_gfx_fill_set(o, 0, 0, 120, 160); |
diff --git a/src/bin/image_mask_3.c b/src/bin/image_mask_3.c index 3af97ba..a3075af 100644 --- a/src/bin/image_mask_3.c +++ b/src/bin/image_mask_3.c | |||
@@ -23,14 +23,14 @@ static void _setup(void) | |||
23 | Evas_Object *o; | 23 | Evas_Object *o; |
24 | for (i = 0; i < OBNUM; i+= 2) | 24 | for (i = 0; i < OBNUM; i+= 2) |
25 | { | 25 | { |
26 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 26 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
27 | o_images[i] = o; | 27 | o_images[i] = o; |
28 | efl_file_set(o, build_path("e-logo-2.png"), NULL); | 28 | efl_file_set(o, build_path("e-logo-2.png"), NULL); |
29 | efl_gfx_fill_set(o, 0, 0, 120, 160); | 29 | efl_gfx_fill_set(o, 0, 0, 120, 160); |
30 | efl_gfx_size_set(o, 120, 160); | 30 | efl_gfx_size_set(o, 120, 160); |
31 | efl_gfx_visible_set(o, EINA_TRUE); | 31 | efl_gfx_visible_set(o, EINA_TRUE); |
32 | 32 | ||
33 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 33 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
34 | o_images[i + 1] = o; | 34 | o_images[i + 1] = o; |
35 | efl_file_set(o, build_path("logo.png"), NULL); | 35 | efl_file_set(o, build_path("logo.png"), NULL); |
36 | efl_gfx_fill_set(o, 0, 0, 120, 160); | 36 | efl_gfx_fill_set(o, 0, 0, 120, 160); |
diff --git a/src/bin/image_mask_4.c b/src/bin/image_mask_4.c index 74359f3..90ab4b5 100644 --- a/src/bin/image_mask_4.c +++ b/src/bin/image_mask_4.c | |||
@@ -23,7 +23,7 @@ static void _setup(void) | |||
23 | int i; | 23 | int i; |
24 | Evas_Object *o; | 24 | Evas_Object *o; |
25 | 25 | ||
26 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 26 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
27 | o_mask = o; | 27 | o_mask = o; |
28 | efl_file_set(o, build_path("e-logo-mask.png"), NULL); | 28 | efl_file_set(o, build_path("e-logo-mask.png"), NULL); |
29 | efl_gfx_fill_set(o, 0, 0, 720, 420); | 29 | efl_gfx_fill_set(o, 0, 0, 720, 420); |
@@ -33,7 +33,7 @@ static void _setup(void) | |||
33 | 33 | ||
34 | for (i = 0; i < OBNUM; i++) | 34 | for (i = 0; i < OBNUM; i++) |
35 | { | 35 | { |
36 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 36 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
37 | o_images[i] = o; | 37 | o_images[i] = o; |
38 | efl_file_set(o, build_path("logo.png"), NULL); | 38 | efl_file_set(o, build_path("logo.png"), NULL); |
39 | efl_gfx_fill_set(o, 0, 0, 120, 160); | 39 | efl_gfx_fill_set(o, 0, 0, 120, 160); |
diff --git a/src/bin/image_mask_5.c b/src/bin/image_mask_5.c index bbb5e13..53fa584 100644 --- a/src/bin/image_mask_5.c +++ b/src/bin/image_mask_5.c | |||
@@ -23,7 +23,7 @@ static void _setup(void) | |||
23 | int i; | 23 | int i; |
24 | Evas_Object *o; | 24 | Evas_Object *o; |
25 | 25 | ||
26 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 26 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
27 | o_mask = o; | 27 | o_mask = o; |
28 | efl_file_set(o, build_path("e-logo-2.png"), NULL); | 28 | efl_file_set(o, build_path("e-logo-2.png"), NULL); |
29 | efl_gfx_fill_set(o, 0, 0, 120, 160); | 29 | efl_gfx_fill_set(o, 0, 0, 120, 160); |
@@ -33,7 +33,7 @@ static void _setup(void) | |||
33 | 33 | ||
34 | for (i = 0; i < OBNUM; i++) | 34 | for (i = 0; i < OBNUM; i++) |
35 | { | 35 | { |
36 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 36 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
37 | o_images[i] = o; | 37 | o_images[i] = o; |
38 | efl_file_set(o, build_path("logo.png"), NULL); | 38 | efl_file_set(o, build_path("logo.png"), NULL); |
39 | efl_gfx_fill_set(o, 0, 0, 120, 160); | 39 | efl_gfx_fill_set(o, 0, 0, 120, 160); |
diff --git a/src/bin/image_mask_6.c b/src/bin/image_mask_6.c index 324087c..8e5684d 100644 --- a/src/bin/image_mask_6.c +++ b/src/bin/image_mask_6.c | |||
@@ -23,7 +23,7 @@ static void _setup(void) | |||
23 | int i; | 23 | int i; |
24 | Evas_Object *o; | 24 | Evas_Object *o; |
25 | 25 | ||
26 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 26 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
27 | o_mask = o; | 27 | o_mask = o; |
28 | efl_file_set(o, build_path("e-logo-mask.png"), NULL); | 28 | efl_file_set(o, build_path("e-logo-mask.png"), NULL); |
29 | efl_gfx_fill_set(o, 0, 0, 720, 420); | 29 | efl_gfx_fill_set(o, 0, 0, 720, 420); |
@@ -33,7 +33,7 @@ static void _setup(void) | |||
33 | 33 | ||
34 | for (i = 0; i < OBNUM; i++) | 34 | for (i = 0; i < OBNUM; i++) |
35 | { | 35 | { |
36 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 36 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
37 | o_images[i] = o; | 37 | o_images[i] = o; |
38 | efl_file_set(o, build_path("logo.png"), NULL); | 38 | efl_file_set(o, build_path("logo.png"), NULL); |
39 | efl_gfx_fill_set(o, 0, 0, 120 / 2, 160 / 2); | 39 | efl_gfx_fill_set(o, 0, 0, 120 / 2, 160 / 2); |
diff --git a/src/bin/image_mask_7.c b/src/bin/image_mask_7.c index 5a9a3c1..13c8d76 100644 --- a/src/bin/image_mask_7.c +++ b/src/bin/image_mask_7.c | |||
@@ -23,7 +23,7 @@ static void _setup(void) | |||
23 | int i; | 23 | int i; |
24 | Evas_Object *o; | 24 | Evas_Object *o; |
25 | 25 | ||
26 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 26 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
27 | o_mask = o; | 27 | o_mask = o; |
28 | efl_file_set(o, build_path("e-logo-2.png"), NULL); | 28 | efl_file_set(o, build_path("e-logo-2.png"), NULL); |
29 | efl_gfx_fill_set(o, 0, 0, 120, 160); | 29 | efl_gfx_fill_set(o, 0, 0, 120, 160); |
@@ -33,7 +33,7 @@ static void _setup(void) | |||
33 | 33 | ||
34 | for (i = 0; i < OBNUM; i++) | 34 | for (i = 0; i < OBNUM; i++) |
35 | { | 35 | { |
36 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 36 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
37 | o_images[i] = o; | 37 | o_images[i] = o; |
38 | efl_file_set(o, build_path("logo.png"), NULL); | 38 | efl_file_set(o, build_path("logo.png"), NULL); |
39 | efl_gfx_fill_set(o, 0, 0, 120, 160); | 39 | efl_gfx_fill_set(o, 0, 0, 120, 160); |
diff --git a/src/bin/image_mask_8.c b/src/bin/image_mask_8.c index bdb4556..b31c624 100644 --- a/src/bin/image_mask_8.c +++ b/src/bin/image_mask_8.c | |||
@@ -23,7 +23,7 @@ static void _setup(void) | |||
23 | int i; | 23 | int i; |
24 | Evas_Object *o; | 24 | Evas_Object *o; |
25 | 25 | ||
26 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 26 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
27 | o_mask = o; | 27 | o_mask = o; |
28 | efl_file_set(o, build_path("e-logo-mask.png"), NULL); | 28 | efl_file_set(o, build_path("e-logo-mask.png"), NULL); |
29 | efl_gfx_fill_set(o, 0, 0, 720, 420); | 29 | efl_gfx_fill_set(o, 0, 0, 720, 420); |
@@ -33,7 +33,7 @@ static void _setup(void) | |||
33 | 33 | ||
34 | for (i = 0; i < 1; i++) | 34 | for (i = 0; i < 1; i++) |
35 | { | 35 | { |
36 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 36 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
37 | o_images[i] = o; | 37 | o_images[i] = o; |
38 | efl_file_set(o, build_path("texture.png"), NULL); | 38 | efl_file_set(o, build_path("texture.png"), NULL); |
39 | efl_gfx_fill_set(o, 0, 0, 500, 444); | 39 | efl_gfx_fill_set(o, 0, 0, 500, 444); |
diff --git a/src/bin/image_mask_9.c b/src/bin/image_mask_9.c index 4d8062c..9289952 100644 --- a/src/bin/image_mask_9.c +++ b/src/bin/image_mask_9.c | |||
@@ -23,7 +23,7 @@ static void _setup(void) | |||
23 | int i; | 23 | int i; |
24 | Evas_Object *o; | 24 | Evas_Object *o; |
25 | 25 | ||
26 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 26 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
27 | o_mask = o; | 27 | o_mask = o; |
28 | efl_file_set(o, build_path("e-logo-mask.png"), NULL); | 28 | efl_file_set(o, build_path("e-logo-mask.png"), NULL); |
29 | efl_gfx_fill_set(o, 0, 0, 720, 420); | 29 | efl_gfx_fill_set(o, 0, 0, 720, 420); |
@@ -33,7 +33,7 @@ static void _setup(void) | |||
33 | 33 | ||
34 | for (i = 0; i < 1; i++) | 34 | for (i = 0; i < 1; i++) |
35 | { | 35 | { |
36 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 36 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
37 | o_images[i] = o; | 37 | o_images[i] = o; |
38 | efl_file_set(o, build_path("texture.png"), NULL); | 38 | efl_file_set(o, build_path("texture.png"), NULL); |
39 | efl_gfx_fill_set(o, 0, 0, 500, 444); | 39 | efl_gfx_fill_set(o, 0, 0, 500, 444); |
diff --git a/src/bin/image_quality_scale.c b/src/bin/image_quality_scale.c index 965357d..34f61fc 100644 --- a/src/bin/image_quality_scale.c +++ b/src/bin/image_quality_scale.c | |||
@@ -24,7 +24,7 @@ static void _setup(void) | |||
24 | Evas_Object *o; | 24 | Evas_Object *o; |
25 | for (i = 0; i < 1; i++) | 25 | for (i = 0; i < 1; i++) |
26 | { | 26 | { |
27 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 27 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
28 | o_images[i] = o; | 28 | o_images[i] = o; |
29 | efl_file_set(o, build_path("tp.png"), NULL); | 29 | efl_file_set(o, build_path("tp.png"), NULL); |
30 | efl_gfx_fill_set(o, 0, 0, 640, 480); | 30 | efl_gfx_fill_set(o, 0, 0, 640, 480); |
diff --git a/src/bin/line_blend.c b/src/bin/line_blend.c index 289b81d..9deeb18 100644 --- a/src/bin/line_blend.c +++ b/src/bin/line_blend.c | |||
@@ -26,7 +26,7 @@ static void _setup(void) | |||
26 | { | 26 | { |
27 | int r, g, b, a; | 27 | int r, g, b, a; |
28 | 28 | ||
29 | eo_add(&o, EVAS_LINE_CLASS, evas); | 29 | o = eo_add(EVAS_LINE_CLASS, evas); |
30 | o_images[i] = o; | 30 | o_images[i] = o; |
31 | a = (rnd()&0xff) / 2; | 31 | a = (rnd()&0xff) / 2; |
32 | r = ((rnd()&0xff) * a) / 255; | 32 | r = ((rnd()&0xff) * a) / 255; |
diff --git a/src/bin/poly_blend.c b/src/bin/poly_blend.c index 92f5970..54b6951 100644 --- a/src/bin/poly_blend.c +++ b/src/bin/poly_blend.c | |||
@@ -73,7 +73,7 @@ static void _setup(void) | |||
73 | { | 73 | { |
74 | int r, g, b, a; | 74 | int r, g, b, a; |
75 | 75 | ||
76 | eo_add(&o, EVAS_POLYGON_CLASS, evas); | 76 | o = eo_add(EVAS_POLYGON_CLASS, evas); |
77 | o_images[i] = o; | 77 | o_images[i] = o; |
78 | a = (rnd()&0xff) / 2; | 78 | a = (rnd()&0xff) / 2; |
79 | r = ((rnd()&0xff) * a) / 255; | 79 | r = ((rnd()&0xff) * a) / 255; |
diff --git a/src/bin/proxy_image.c b/src/bin/proxy_image.c index 69c0c10..df2b4ab 100644 --- a/src/bin/proxy_image.c +++ b/src/bin/proxy_image.c | |||
@@ -22,7 +22,7 @@ static void _setup(void) | |||
22 | int i; | 22 | int i; |
23 | Evas_Object *o,*src; | 23 | Evas_Object *o,*src; |
24 | 24 | ||
25 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 25 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
26 | efl_file_set(o, build_path("logo.png"), NULL); | 26 | efl_file_set(o, build_path("logo.png"), NULL); |
27 | efl_gfx_fill_set(o, 0, 0, 120, 160); | 27 | efl_gfx_fill_set(o, 0, 0, 120, 160); |
28 | efl_gfx_size_set(o, 120, 160); | 28 | efl_gfx_size_set(o, 120, 160); |
@@ -32,7 +32,7 @@ static void _setup(void) | |||
32 | 32 | ||
33 | for (i = 1; i < OBNUM; i++) | 33 | for (i = 1; i < OBNUM; i++) |
34 | { | 34 | { |
35 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 35 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
36 | o_images[i] = o; | 36 | o_images[i] = o; |
37 | evas_obj_image_source_set(o, src); | 37 | evas_obj_image_source_set(o, src); |
38 | efl_gfx_size_set(o, 120, 160); | 38 | efl_gfx_size_set(o, 120, 160); |
diff --git a/src/bin/proxy_image_offscreen.c b/src/bin/proxy_image_offscreen.c index 05f8d3f..5e4fb80 100644 --- a/src/bin/proxy_image_offscreen.c +++ b/src/bin/proxy_image_offscreen.c | |||
@@ -26,7 +26,7 @@ static void _setup(void) | |||
26 | int i; | 26 | int i; |
27 | Evas_Object *o,*src; | 27 | Evas_Object *o,*src; |
28 | 28 | ||
29 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 29 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
30 | efl_file_set(o, build_path("logo.png"), NULL); | 30 | efl_file_set(o, build_path("logo.png"), NULL); |
31 | efl_gfx_fill_set(o, 0, 0, 120, 160); | 31 | efl_gfx_fill_set(o, 0, 0, 120, 160); |
32 | efl_gfx_size_set(o, 120, 160); | 32 | efl_gfx_size_set(o, 120, 160); |
@@ -35,7 +35,7 @@ static void _setup(void) | |||
35 | 35 | ||
36 | for (i = 0; i < OBNUM / 2; i++) | 36 | for (i = 0; i < OBNUM / 2; i++) |
37 | { | 37 | { |
38 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 38 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
39 | o_images[i] = o; | 39 | o_images[i] = o; |
40 | evas_obj_image_source_set(o, src, NULL); | 40 | evas_obj_image_source_set(o, src, NULL); |
41 | efl_gfx_size_set(o, 120, 160); | 41 | efl_gfx_size_set(o, 120, 160); |
diff --git a/src/bin/proxy_text_fixed.c b/src/bin/proxy_text_fixed.c index 7171f3c..0d8ec83 100644 --- a/src/bin/proxy_text_fixed.c +++ b/src/bin/proxy_text_fixed.c | |||
@@ -27,7 +27,7 @@ static void _setup(void) | |||
27 | st = EVAS_TEXT_STYLE_SHADOW; | 27 | st = EVAS_TEXT_STYLE_SHADOW; |
28 | for (i = 0; st <= EVAS_TEXT_STYLE_FAR_SOFT_SHADOW; i++) | 28 | for (i = 0; st <= EVAS_TEXT_STYLE_FAR_SOFT_SHADOW; i++) |
29 | { | 29 | { |
30 | eo_add(&o, EVAS_TEXT_CLASS, evas); | 30 | o = eo_add(EVAS_TEXT_CLASS, evas); |
31 | o_texts[i] = o; | 31 | o_texts[i] = o; |
32 | efl_text_properties_font_set(o, "Vera-Bold", 20); | 32 | efl_text_properties_font_set(o, "Vera-Bold", 20); |
33 | efl_text_set(o, "This is a test string"); | 33 | efl_text_set(o, "This is a test string"); |
@@ -45,7 +45,7 @@ static void _setup(void) | |||
45 | for ( ; i < OBNUM ; i ++) | 45 | for ( ; i < OBNUM ; i ++) |
46 | { | 46 | { |
47 | s = o_texts[i % st]; | 47 | s = o_texts[i % st]; |
48 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 48 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
49 | o_texts[i] = o; | 49 | o_texts[i] = o; |
50 | evas_obj_image_source_set(o, s); | 50 | evas_obj_image_source_set(o, s); |
51 | /* FIXME s == NULL*/ | 51 | /* FIXME s == NULL*/ |
diff --git a/src/bin/proxy_text_random.c b/src/bin/proxy_text_random.c index 490b059..eed870c 100644 --- a/src/bin/proxy_text_random.c +++ b/src/bin/proxy_text_random.c | |||
@@ -30,7 +30,7 @@ static void _setup(void) | |||
30 | "Fiddly", "Family", "Lair", "Monkeys", "Magazine" | 30 | "Fiddly", "Family", "Lair", "Monkeys", "Magazine" |
31 | }; | 31 | }; |
32 | srnd(); | 32 | srnd(); |
33 | eo_add(&o, EVAS_TEXT_CLASS, evas); | 33 | o = eo_add(EVAS_TEXT_CLASS, evas); |
34 | o_texts[0] = o; | 34 | o_texts[0] = o; |
35 | snprintf(buf, sizeof(buf), "%s %s %s %s.", | 35 | snprintf(buf, sizeof(buf), "%s %s %s %s.", |
36 | strs[rnd() % (sizeof(strs) / sizeof(char *))], | 36 | strs[rnd() % (sizeof(strs) / sizeof(char *))], |
@@ -50,7 +50,7 @@ static void _setup(void) | |||
50 | efl_gfx_visible_set(o, EINA_TRUE); | 50 | efl_gfx_visible_set(o, EINA_TRUE); |
51 | for (i = 1 ; i < OBNUM ; i ++) | 51 | for (i = 1 ; i < OBNUM ; i ++) |
52 | { | 52 | { |
53 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 53 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
54 | o_texts[i] = o; | 54 | o_texts[i] = o; |
55 | evas_obj_image_source_set(o, o_texts[0]); | 55 | evas_obj_image_source_set(o, o_texts[0]); |
56 | efl_gfx_size_get(o_texts[0], &w, &h); | 56 | efl_gfx_size_get(o_texts[0], &w, &h); |
diff --git a/src/bin/rect_blend.c b/src/bin/rect_blend.c index 312efb6..51dcaf6 100644 --- a/src/bin/rect_blend.c +++ b/src/bin/rect_blend.c | |||
@@ -26,7 +26,7 @@ static void _setup(void) | |||
26 | { | 26 | { |
27 | int r, g, b, a; | 27 | int r, g, b, a; |
28 | 28 | ||
29 | eo_add(&o, EVAS_RECTANGLE_CLASS, evas); | 29 | o = eo_add(EVAS_RECTANGLE_CLASS, evas); |
30 | o_images[i] = o; | 30 | o_images[i] = o; |
31 | a = rnd()&0xff; | 31 | a = rnd()&0xff; |
32 | r = ((rnd()&0xff) * a) / 255; | 32 | r = ((rnd()&0xff) * a) / 255; |
diff --git a/src/bin/rect_blend_few.c b/src/bin/rect_blend_few.c index c29fa88..fac3244 100644 --- a/src/bin/rect_blend_few.c +++ b/src/bin/rect_blend_few.c | |||
@@ -29,7 +29,7 @@ static void _setup(void) | |||
29 | { | 29 | { |
30 | int r, g, b, a; | 30 | int r, g, b, a; |
31 | 31 | ||
32 | eo_add(&o, EVAS_RECTANGLE_CLASS, evas); | 32 | o = eo_add(EVAS_RECTANGLE_CLASS, evas); |
33 | o_images[i] = o; | 33 | o_images[i] = o; |
34 | a = rnd()&0xff; | 34 | a = rnd()&0xff; |
35 | r = ((rnd()&0xff) * a) / 255; | 35 | r = ((rnd()&0xff) * a) / 255; |
diff --git a/src/bin/rect_blend_pow2.c b/src/bin/rect_blend_pow2.c index 7a9bd01..31fef38 100644 --- a/src/bin/rect_blend_pow2.c +++ b/src/bin/rect_blend_pow2.c | |||
@@ -26,7 +26,7 @@ static void _setup(void) | |||
26 | { | 26 | { |
27 | int r, g, b, a; | 27 | int r, g, b, a; |
28 | 28 | ||
29 | eo_add(&o, EVAS_RECTANGLE_CLASS, evas); | 29 | o = eo_add(EVAS_RECTANGLE_CLASS, evas); |
30 | o_images[i] = o; | 30 | o_images[i] = o; |
31 | a = 256 - (1 << ((rnd() % 8) + 1)); | 31 | a = 256 - (1 << ((rnd() % 8) + 1)); |
32 | if (a < 128) a = 128; | 32 | if (a < 128) a = 128; |
diff --git a/src/bin/rect_blend_pow2_few.c b/src/bin/rect_blend_pow2_few.c index f0b7510..214602b 100644 --- a/src/bin/rect_blend_pow2_few.c +++ b/src/bin/rect_blend_pow2_few.c | |||
@@ -29,7 +29,7 @@ static void _setup(void) | |||
29 | { | 29 | { |
30 | int r, g, b, a; | 30 | int r, g, b, a; |
31 | 31 | ||
32 | eo_add(&o, EVAS_RECTANGLE_CLASS, evas); | 32 | o = eo_add(EVAS_RECTANGLE_CLASS, evas); |
33 | o_images[i] = o; | 33 | o_images[i] = o; |
34 | a = 256 - (1 << ((rnd() % 8) + 1)); | 34 | a = 256 - (1 << ((rnd() % 8) + 1)); |
35 | if (a < 128) a = 128; | 35 | if (a < 128) a = 128; |
diff --git a/src/bin/rect_solid.c b/src/bin/rect_solid.c index 45f7303..fbd2d46 100644 --- a/src/bin/rect_solid.c +++ b/src/bin/rect_solid.c | |||
@@ -26,7 +26,7 @@ static void _setup(void) | |||
26 | { | 26 | { |
27 | int r, g, b, a; | 27 | int r, g, b, a; |
28 | 28 | ||
29 | eo_add(&o, EVAS_RECTANGLE_CLASS, evas); | 29 | o = eo_add(EVAS_RECTANGLE_CLASS, evas); |
30 | o_images[i] = o; | 30 | o_images[i] = o; |
31 | a = 0xff; | 31 | a = 0xff; |
32 | r = ((rnd()&0xff) * a) / 255; | 32 | r = ((rnd()&0xff) * a) / 255; |
diff --git a/src/bin/rect_solid_few.c b/src/bin/rect_solid_few.c index 1577a18..568c011 100644 --- a/src/bin/rect_solid_few.c +++ b/src/bin/rect_solid_few.c | |||
@@ -29,7 +29,7 @@ static void _setup(void) | |||
29 | { | 29 | { |
30 | int r, g, b, a; | 30 | int r, g, b, a; |
31 | 31 | ||
32 | eo_add(&o, EVAS_RECTANGLE_CLASS, evas); | 32 | o = eo_add(EVAS_RECTANGLE_CLASS, evas); |
33 | o_images[i] = o; | 33 | o_images[i] = o; |
34 | a = 0xff; | 34 | a = 0xff; |
35 | r = ((rnd()&0xff) * a) / 255; | 35 | r = ((rnd()&0xff) * a) / 255; |
diff --git a/src/bin/snapshot_widgets_file_icons.c b/src/bin/snapshot_widgets_file_icons.c index 0cbaa29..328073a 100644 --- a/src/bin/snapshot_widgets_file_icons.c +++ b/src/bin/snapshot_widgets_file_icons.c | |||
@@ -54,7 +54,7 @@ static void _setup(void) | |||
54 | { | 54 | { |
55 | Evas_Coord tw, th, cent; | 55 | Evas_Coord tw, th, cent; |
56 | 56 | ||
57 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 57 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
58 | o_images[i] = o; | 58 | o_images[i] = o; |
59 | efl_file_set(o, build_path(icons[i % 13]), NULL); | 59 | efl_file_set(o, build_path(icons[i % 13]), NULL); |
60 | efl_gfx_fill_set(o, 0, 0, ICON_SIZE, ICON_SIZE); | 60 | efl_gfx_fill_set(o, 0, 0, ICON_SIZE, ICON_SIZE); |
@@ -62,7 +62,7 @@ static void _setup(void) | |||
62 | efl_gfx_position_set(o, x + 8, y); | 62 | efl_gfx_position_set(o, x + 8, y); |
63 | efl_gfx_visible_set(o, EINA_TRUE); | 63 | efl_gfx_visible_set(o, EINA_TRUE); |
64 | 64 | ||
65 | eo_add(&o, EVAS_TEXT_CLASS, evas); | 65 | o = eo_add(EVAS_TEXT_CLASS, evas); |
66 | o_texts[i] = o; | 66 | o_texts[i] = o; |
67 | efl_text_properties_font_set(o, "Vera-Bold", 10); | 67 | efl_text_properties_font_set(o, "Vera-Bold", 10); |
68 | efl_text_set(o, icons[i % 13]); | 68 | efl_text_set(o, icons[i % 13]); |
@@ -85,7 +85,7 @@ static void _setup(void) | |||
85 | "blur { 5, dst = a, color = '#ff0' }" | 85 | "blur { 5, dst = a, color = '#ff0' }" |
86 | ; | 86 | ; |
87 | 87 | ||
88 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 88 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
89 | o_snap = o; | 89 | o_snap = o; |
90 | efl_gfx_visible_set(o, EINA_TRUE); | 90 | efl_gfx_visible_set(o, EINA_TRUE); |
91 | efl_gfx_position_set(o, 50, 50); | 91 | efl_gfx_position_set(o, 50, 50); |
diff --git a/src/bin/text_basic.c b/src/bin/text_basic.c index 6c79552..31fa0d5 100644 --- a/src/bin/text_basic.c +++ b/src/bin/text_basic.c | |||
@@ -25,7 +25,7 @@ static void _setup(void) | |||
25 | 25 | ||
26 | for (i = 0; i < OBNUM; i++) | 26 | for (i = 0; i < OBNUM; i++) |
27 | { | 27 | { |
28 | eo_add(&o, EVAS_TEXT_CLASS, evas); | 28 | o = eo_add(EVAS_TEXT_CLASS, evas); |
29 | o_texts[i] = o; | 29 | o_texts[i] = o; |
30 | efl_text_properties_font_set(o, "Vera-Bold", 20); | 30 | efl_text_properties_font_set(o, "Vera-Bold", 20); |
31 | efl_text_set(o, "This is a test string"); | 31 | efl_text_set(o, "This is a test string"); |
diff --git a/src/bin/text_change.c b/src/bin/text_change.c index 0504a8c..aa7b594 100644 --- a/src/bin/text_change.c +++ b/src/bin/text_change.c | |||
@@ -32,7 +32,7 @@ static void _setup(void) | |||
32 | srnd(); | 32 | srnd(); |
33 | for (i = 0; i < OBNUM; i++) | 33 | for (i = 0; i < OBNUM; i++) |
34 | { | 34 | { |
35 | eo_add(&o, EVAS_TEXT_CLASS, evas); | 35 | o = eo_add(EVAS_TEXT_CLASS, evas); |
36 | o_texts[i] = o; | 36 | o_texts[i] = o; |
37 | efl_text_properties_font_set(o, "Vera-Bold", 20); | 37 | efl_text_properties_font_set(o, "Vera-Bold", 20); |
38 | snprintf(buf, sizeof(buf), "%s %s %s %s.", | 38 | snprintf(buf, sizeof(buf), "%s %s %s %s.", |
diff --git a/src/bin/text_styles.c b/src/bin/text_styles.c index 7b925af..44c6576 100644 --- a/src/bin/text_styles.c +++ b/src/bin/text_styles.c | |||
@@ -27,7 +27,7 @@ static void _setup(void) | |||
27 | st = EVAS_TEXT_STYLE_SHADOW; | 27 | st = EVAS_TEXT_STYLE_SHADOW; |
28 | for (i = 0; i < OBNUM; i++) | 28 | for (i = 0; i < OBNUM; i++) |
29 | { | 29 | { |
30 | eo_add(&o, EVAS_TEXT_CLASS, evas); | 30 | o = eo_add(EVAS_TEXT_CLASS, evas); |
31 | o_texts[i] = o; | 31 | o_texts[i] = o; |
32 | efl_text_properties_font_set(o, "Vera-Bold", 20); | 32 | efl_text_properties_font_set(o, "Vera-Bold", 20); |
33 | efl_text_set(o, "This is a test string"); | 33 | efl_text_set(o, "This is a test string"); |
diff --git a/src/bin/text_styles_different_strings.c b/src/bin/text_styles_different_strings.c index b49101f..48e4fd4 100644 --- a/src/bin/text_styles_different_strings.c +++ b/src/bin/text_styles_different_strings.c | |||
@@ -34,7 +34,7 @@ static void _setup(void) | |||
34 | st = EVAS_TEXT_STYLE_SHADOW; | 34 | st = EVAS_TEXT_STYLE_SHADOW; |
35 | for (i = 0; i < OBNUM; i++) | 35 | for (i = 0; i < OBNUM; i++) |
36 | { | 36 | { |
37 | eo_add(&o, EVAS_TEXT_CLASS, evas); | 37 | o = eo_add(EVAS_TEXT_CLASS, evas); |
38 | o_texts[i] = o; | 38 | o_texts[i] = o; |
39 | efl_text_properties_font_set(o, "Vera-Bold", 20); | 39 | efl_text_properties_font_set(o, "Vera-Bold", 20); |
40 | snprintf(buf, sizeof(buf), "%s %s %s %s.", | 40 | snprintf(buf, sizeof(buf), "%s %s %s %s.", |
diff --git a/src/bin/textblock_auto_align.c b/src/bin/textblock_auto_align.c index d2e0048..d5d6dac 100644 --- a/src/bin/textblock_auto_align.c +++ b/src/bin/textblock_auto_align.c | |||
@@ -23,7 +23,7 @@ static void _setup(void) | |||
23 | Evas_Object *o; | 23 | Evas_Object *o; |
24 | Evas_Textblock_Style *st; | 24 | Evas_Textblock_Style *st; |
25 | 25 | ||
26 | eo_add(&o, EVAS_TEXTBLOCK_CLASS, evas); | 26 | o = eo_add(EVAS_TEXTBLOCK_CLASS, evas); |
27 | o_text = o; | 27 | o_text = o; |
28 | st = evas_textblock_style_new(); | 28 | st = evas_textblock_style_new(); |
29 | evas_textblock_style_set | 29 | evas_textblock_style_set |
diff --git a/src/bin/textblock_basic.c b/src/bin/textblock_basic.c index d9451fd..3b7bb50 100644 --- a/src/bin/textblock_basic.c +++ b/src/bin/textblock_basic.c | |||
@@ -23,7 +23,7 @@ static void _setup(void) | |||
23 | Evas_Object *o; | 23 | Evas_Object *o; |
24 | Evas_Textblock_Style *st; | 24 | Evas_Textblock_Style *st; |
25 | 25 | ||
26 | eo_add(&o, EVAS_TEXTBLOCK_CLASS, evas); | 26 | o = eo_add(EVAS_TEXTBLOCK_CLASS, evas); |
27 | o_text = o; | 27 | o_text = o; |
28 | st = evas_textblock_style_new(); | 28 | st = evas_textblock_style_new(); |
29 | evas_textblock_style_set | 29 | evas_textblock_style_set |
diff --git a/src/bin/textblock_intl.c b/src/bin/textblock_intl.c index 285113d..1768c86 100644 --- a/src/bin/textblock_intl.c +++ b/src/bin/textblock_intl.c | |||
@@ -23,7 +23,7 @@ static void _setup(void) | |||
23 | Evas_Object *o; | 23 | Evas_Object *o; |
24 | Evas_Textblock_Style *st; | 24 | Evas_Textblock_Style *st; |
25 | 25 | ||
26 | eo_add(&o, EVAS_TEXTBLOCK_CLASS, evas); | 26 | o = eo_add(EVAS_TEXTBLOCK_CLASS, evas); |
27 | o_text = o; | 27 | o_text = o; |
28 | st = evas_textblock_style_new(); | 28 | st = evas_textblock_style_new(); |
29 | evas_textblock_style_set | 29 | evas_textblock_style_set |
diff --git a/src/bin/textblock_text_append.c b/src/bin/textblock_text_append.c index ddc8ad7..3168b76 100644 --- a/src/bin/textblock_text_append.c +++ b/src/bin/textblock_text_append.c | |||
@@ -23,7 +23,7 @@ static void _setup(void) | |||
23 | Evas_Object *o; | 23 | Evas_Object *o; |
24 | Evas_Textblock_Style *st; | 24 | Evas_Textblock_Style *st; |
25 | 25 | ||
26 | eo_add(&o, EVAS_TEXTBLOCK_CLASS, evas); | 26 | o = eo_add(EVAS_TEXTBLOCK_CLASS, evas); |
27 | o_text = o; | 27 | o_text = o; |
28 | st = evas_textblock_style_new(); | 28 | st = evas_textblock_style_new(); |
29 | evas_textblock_style_set | 29 | evas_textblock_style_set |
diff --git a/src/bin/ui.c b/src/bin/ui.c index 7caf36f..75c6ec0 100644 --- a/src/bin/ui.c +++ b/src/bin/ui.c | |||
@@ -356,7 +356,7 @@ _ui_menu_item_full_add(Eina_Bool test, | |||
356 | Menu_Item *mi; | 356 | Menu_Item *mi; |
357 | 357 | ||
358 | mi = malloc(sizeof(Menu_Item)); | 358 | mi = malloc(sizeof(Menu_Item)); |
359 | eo_add(&mi->o_icon, EVAS_IMAGE_CLASS, evas); | 359 | mi->o_icon = eo_add(EVAS_IMAGE_CLASS, evas); |
360 | efl_file_set(mi->o_icon, build_path(icon), NULL); | 360 | efl_file_set(mi->o_icon, build_path(icon), NULL); |
361 | efl_gfx_size_set(mi->o_icon, 32, 32); | 361 | efl_gfx_size_set(mi->o_icon, 32, 32); |
362 | efl_gfx_fill_set(mi->o_icon, 0, 0, 32, 32); | 362 | efl_gfx_fill_set(mi->o_icon, 0, 0, 32, 32); |
@@ -385,7 +385,7 @@ ui_setup(unsigned int ui_w, unsigned int ui_h) | |||
385 | win_w = ui_w; | 385 | win_w = ui_w; |
386 | win_h = ui_h; | 386 | win_h = ui_h; |
387 | 387 | ||
388 | eo_add(&o, EVAS_RECTANGLE_CLASS, evas); | 388 | o = eo_add(EVAS_RECTANGLE_CLASS, evas); |
389 | efl_gfx_position_set(o, 0, 0); | 389 | efl_gfx_position_set(o, 0, 0); |
390 | efl_gfx_size_set(o, win_w, win_h); | 390 | efl_gfx_size_set(o, win_w, win_h); |
391 | efl_gfx_color_set(o, 0, 0, 0, 0); | 391 | efl_gfx_color_set(o, 0, 0, 0, 0); |
@@ -395,7 +395,7 @@ ui_setup(unsigned int ui_w, unsigned int ui_h) | |||
395 | eo_event_callback_array_add(o, ui_callbacks(), NULL); | 395 | eo_event_callback_array_add(o, ui_callbacks(), NULL); |
396 | o_bg = o; | 396 | o_bg = o; |
397 | 397 | ||
398 | eo_add(&o, EVAS_RECTANGLE_CLASS, evas); | 398 | o = eo_add(EVAS_RECTANGLE_CLASS, evas); |
399 | efl_gfx_position_set(o, 0, 0); | 399 | efl_gfx_position_set(o, 0, 0); |
400 | efl_gfx_size_set(o, win_w, win_h); | 400 | efl_gfx_size_set(o, win_w, win_h); |
401 | efl_gfx_color_set(o, 255, 255, 255, 255); | 401 | efl_gfx_color_set(o, 255, 255, 255, 255); |
@@ -403,7 +403,7 @@ ui_setup(unsigned int ui_w, unsigned int ui_h) | |||
403 | efl_gfx_visible_set(o, EINA_TRUE); | 403 | efl_gfx_visible_set(o, EINA_TRUE); |
404 | o_wallpaper = o; | 404 | o_wallpaper = o; |
405 | 405 | ||
406 | eo_add(&o, EVAS_TEXT_CLASS, evas); | 406 | o = eo_add(EVAS_TEXT_CLASS, evas); |
407 | efl_text_properties_font_set(o, "Vera-Bold", 10); | 407 | efl_text_properties_font_set(o, "Vera-Bold", 10); |
408 | efl_text_set(o, "EXPEDITE"); | 408 | efl_text_set(o, "EXPEDITE"); |
409 | efl_gfx_stack_layer_set(o, 100); | 409 | efl_gfx_stack_layer_set(o, 100); |
@@ -416,7 +416,7 @@ ui_setup(unsigned int ui_w, unsigned int ui_h) | |||
416 | efl_gfx_visible_set(o, EINA_TRUE); | 416 | efl_gfx_visible_set(o, EINA_TRUE); |
417 | o_title = o; | 417 | o_title = o; |
418 | 418 | ||
419 | eo_add(&o, EVAS_TEXT_CLASS, evas); | 419 | o = eo_add(EVAS_TEXT_CLASS, evas); |
420 | efl_text_properties_font_set(o, "Vera", 9); | 420 | efl_text_properties_font_set(o, "Vera", 9); |
421 | efl_text_set(o, "LEFT/RIGHT - select, ENTER - select, ESCAPE - exit."); | 421 | efl_text_set(o, "LEFT/RIGHT - select, ENTER - select, ESCAPE - exit."); |
422 | efl_gfx_stack_layer_set(o, 100); | 422 | efl_gfx_stack_layer_set(o, 100); |
@@ -429,7 +429,7 @@ ui_setup(unsigned int ui_w, unsigned int ui_h) | |||
429 | efl_gfx_visible_set(o, EINA_TRUE); | 429 | efl_gfx_visible_set(o, EINA_TRUE); |
430 | o_byline = o; | 430 | o_byline = o; |
431 | 431 | ||
432 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 432 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
433 | efl_gfx_position_set(o, (win_w - 120) / 2, ((win_h - 160) / 2)); | 433 | efl_gfx_position_set(o, (win_w - 120) / 2, ((win_h - 160) / 2)); |
434 | efl_file_set(o, build_path("e-logo.png"), NULL); | 434 | efl_file_set(o, build_path("e-logo.png"), NULL); |
435 | efl_gfx_fill_set(o, 0, 0, 120, 160); | 435 | efl_gfx_fill_set(o, 0, 0, 120, 160); |
@@ -439,21 +439,21 @@ ui_setup(unsigned int ui_w, unsigned int ui_h) | |||
439 | efl_gfx_visible_set(o, EINA_TRUE); | 439 | efl_gfx_visible_set(o, EINA_TRUE); |
440 | o_menu_logo = o; | 440 | o_menu_logo = o; |
441 | 441 | ||
442 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 442 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
443 | efl_gfx_position_set(o, win_w - 128, - 128); | 443 | efl_gfx_position_set(o, win_w - 128, - 128); |
444 | efl_gfx_fill_set(o, 0, 0, 256, 256); | 444 | efl_gfx_fill_set(o, 0, 0, 256, 256); |
445 | efl_gfx_size_set(o, 256, 256); | 445 | efl_gfx_size_set(o, 256, 256); |
446 | efl_gfx_visible_set(o, EINA_TRUE); | 446 | efl_gfx_visible_set(o, EINA_TRUE); |
447 | o_menu_icon = o; | 447 | o_menu_icon = o; |
448 | 448 | ||
449 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 449 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
450 | efl_gfx_position_set(o, 0, 0); | 450 | efl_gfx_position_set(o, 0, 0); |
451 | efl_file_set(o, build_path("icon_sel.png"), NULL); | 451 | efl_file_set(o, build_path("icon_sel.png"), NULL); |
452 | efl_gfx_size_set(o, 48, 48); | 452 | efl_gfx_size_set(o, 48, 48); |
453 | efl_gfx_fill_set(o, 0, 0, 48, 48); | 453 | efl_gfx_fill_set(o, 0, 0, 48, 48); |
454 | o_menu_icon_sel = o; | 454 | o_menu_icon_sel = o; |
455 | 455 | ||
456 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 456 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
457 | efl_gfx_position_set(o, 0, 0); | 457 | efl_gfx_position_set(o, 0, 0); |
458 | efl_file_set(o, build_path("text_sel.png"), NULL); | 458 | efl_file_set(o, build_path("text_sel.png"), NULL); |
459 | efl_gfx_size_set(o, 96, 32); | 459 | efl_gfx_size_set(o, 96, 32); |
@@ -461,7 +461,7 @@ ui_setup(unsigned int ui_w, unsigned int ui_h) | |||
461 | evas_obj_image_border_set(o, 7, 7, 7, 7); | 461 | evas_obj_image_border_set(o, 7, 7, 7, 7); |
462 | o_menu_text_sel = o; | 462 | o_menu_text_sel = o; |
463 | 463 | ||
464 | eo_add(&o, EVAS_TEXT_CLASS, evas); | 464 | o = eo_add(EVAS_TEXT_CLASS, evas); |
465 | efl_text_properties_font_set(o, "Vera", 10); | 465 | efl_text_properties_font_set(o, "Vera", 10); |
466 | efl_text_set(o, ""); | 466 | efl_text_set(o, ""); |
467 | efl_gfx_color_set(o, 0, 0, 0, 100); | 467 | efl_gfx_color_set(o, 0, 0, 0, 100); |
diff --git a/src/bin/vg_basic_circle.c b/src/bin/vg_basic_circle.c index fe15b64..a06e4ff 100644 --- a/src/bin/vg_basic_circle.c +++ b/src/bin/vg_basic_circle.c | |||
@@ -30,7 +30,7 @@ static void _setup(void) | |||
30 | Eo *vector; | 30 | Eo *vector; |
31 | double r = 35, stroke_w = 3; | 31 | double r = 35, stroke_w = 3; |
32 | 32 | ||
33 | eo_add(&vector, EVAS_VG_CLASS, evas); | 33 | vector = eo_add(EVAS_VG_CLASS, evas); |
34 | o_shapes[i] = vector; | 34 | o_shapes[i] = vector; |
35 | efl_gfx_size_set(vector, r * 2 + stroke_w * 2, r * 2 + stroke_w * 2); | 35 | efl_gfx_size_set(vector, r * 2 + stroke_w * 2, r * 2 + stroke_w * 2); |
36 | efl_gfx_position_set(vector, 0, 0); | 36 | efl_gfx_position_set(vector, 0, 0); |
@@ -38,7 +38,7 @@ static void _setup(void) | |||
38 | 38 | ||
39 | root = evas_obj_vg_root_node_get(vector); | 39 | root = evas_obj_vg_root_node_get(vector); |
40 | 40 | ||
41 | eo_add(&circle, EFL_VG_SHAPE_CLASS, root); | 41 | circle = eo_add(EFL_VG_SHAPE_CLASS, root); |
42 | efl_gfx_shape_append_circle(circle, r + stroke_w, r + stroke_w, r); | 42 | efl_gfx_shape_append_circle(circle, r + stroke_w, r + stroke_w, r); |
43 | efl_gfx_shape_stroke_width_set(circle, stroke_w); | 43 | efl_gfx_shape_stroke_width_set(circle, stroke_w); |
44 | efl_gfx_shape_stroke_color_set(circle, 128, 0, 128, 128); | 44 | efl_gfx_shape_stroke_color_set(circle, 128, 0, 128, 128); |
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); |
diff --git a/src/bin/vg_basic_rect.c b/src/bin/vg_basic_rect.c index 15eb735..fa8a21e 100644 --- a/src/bin/vg_basic_rect.c +++ b/src/bin/vg_basic_rect.c | |||
@@ -30,7 +30,7 @@ static void _setup(void) | |||
30 | Eo *vector; | 30 | Eo *vector; |
31 | double w = 70, h = 70, stroke_w = 3; | 31 | double w = 70, h = 70, stroke_w = 3; |
32 | 32 | ||
33 | eo_add(&vector, EVAS_VG_CLASS, evas); | 33 | vector = eo_add(EVAS_VG_CLASS, evas); |
34 | o_shapes[i] = vector; | 34 | o_shapes[i] = vector; |
35 | efl_gfx_size_set(vector, w + stroke_w * 2, h + stroke_w * 2); | 35 | efl_gfx_size_set(vector, w + stroke_w * 2, h + stroke_w * 2); |
36 | efl_gfx_position_set(vector, 0, 0); | 36 | efl_gfx_position_set(vector, 0, 0); |
@@ -38,7 +38,7 @@ static void _setup(void) | |||
38 | 38 | ||
39 | root = evas_obj_vg_root_node_get(vector); | 39 | root = evas_obj_vg_root_node_get(vector); |
40 | 40 | ||
41 | eo_add(&rect, EFL_VG_SHAPE_CLASS, root); | 41 | rect = eo_add(EFL_VG_SHAPE_CLASS, root); |
42 | efl_gfx_shape_append_rect(rect, 0 + stroke_w, 0 + stroke_w, w, h, 10, 10); | 42 | efl_gfx_shape_append_rect(rect, 0 + stroke_w, 0 + stroke_w, w, h, 10, 10); |
43 | efl_gfx_shape_stroke_width_set(rect, stroke_w); | 43 | efl_gfx_shape_stroke_width_set(rect, stroke_w); |
44 | efl_gfx_shape_stroke_color_set(rect, 128, 0, 128, 128); | 44 | efl_gfx_shape_stroke_color_set(rect, 128, 0, 128, 128); |
diff --git a/src/bin/vg_scaled.c b/src/bin/vg_scaled.c index eda7213..6ac272e 100644 --- a/src/bin/vg_scaled.c +++ b/src/bin/vg_scaled.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_objects[i] = vector; | 40 | o_objects[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 | o_gradient[i] = gradient = eo_add(&gradient, EFL_VG_GRADIENT_LINEAR_CLASS, NULL); | 47 | o_gradient[i] = 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 | o_shapes[i] = rect = eo_add(&rect, EFL_VG_SHAPE_CLASS, root); | 53 | o_shapes[i] = 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); |
diff --git a/src/bin/widgets_file_icons.c b/src/bin/widgets_file_icons.c index 5e7c788..25a5dd3 100644 --- a/src/bin/widgets_file_icons.c +++ b/src/bin/widgets_file_icons.c | |||
@@ -46,14 +46,14 @@ static void _setup(void) | |||
46 | Evas_Object *o; | 46 | Evas_Object *o; |
47 | for (i = 0; i < NUM; i++) | 47 | for (i = 0; i < NUM; i++) |
48 | { | 48 | { |
49 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 49 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
50 | o_images[i] = o; | 50 | o_images[i] = o; |
51 | efl_file_set(o, build_path(icons[i % 13]), NULL); | 51 | efl_file_set(o, build_path(icons[i % 13]), NULL); |
52 | efl_gfx_fill_set(o, 0, 0, ICON_SIZE, ICON_SIZE); | 52 | efl_gfx_fill_set(o, 0, 0, ICON_SIZE, ICON_SIZE); |
53 | efl_gfx_size_set(o, ICON_SIZE, ICON_SIZE); | 53 | efl_gfx_size_set(o, ICON_SIZE, ICON_SIZE); |
54 | efl_gfx_visible_set(o, EINA_TRUE); | 54 | efl_gfx_visible_set(o, EINA_TRUE); |
55 | 55 | ||
56 | eo_add(&o, EVAS_TEXT_CLASS, evas); | 56 | o = eo_add(EVAS_TEXT_CLASS, evas); |
57 | o_texts[i] = o; | 57 | o_texts[i] = o; |
58 | efl_text_properties_font_set(o, "Vera-Bold", 10); | 58 | efl_text_properties_font_set(o, "Vera-Bold", 10); |
59 | efl_text_set(o, icons[i % 13]); | 59 | efl_text_set(o, icons[i % 13]); |
diff --git a/src/bin/widgets_file_icons_2.c b/src/bin/widgets_file_icons_2.c index b7589c1..03e715b 100644 --- a/src/bin/widgets_file_icons_2.c +++ b/src/bin/widgets_file_icons_2.c | |||
@@ -46,14 +46,14 @@ static void _setup(void) | |||
46 | Evas_Object *o; | 46 | Evas_Object *o; |
47 | for (i = 0; i < NUM; i++) | 47 | for (i = 0; i < NUM; i++) |
48 | { | 48 | { |
49 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 49 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
50 | o_images[i] = o; | 50 | o_images[i] = o; |
51 | efl_file_set(o, build_path(icons[i % 13]), NULL); | 51 | efl_file_set(o, build_path(icons[i % 13]), NULL); |
52 | efl_gfx_fill_set(o, 0, 0, ICON_SIZE, ICON_SIZE); | 52 | efl_gfx_fill_set(o, 0, 0, ICON_SIZE, ICON_SIZE); |
53 | efl_gfx_size_set(o, ICON_SIZE, ICON_SIZE); | 53 | efl_gfx_size_set(o, ICON_SIZE, ICON_SIZE); |
54 | efl_gfx_visible_set(o, EINA_TRUE); | 54 | efl_gfx_visible_set(o, EINA_TRUE); |
55 | 55 | ||
56 | eo_add(&o, EVAS_TEXT_CLASS, evas); | 56 | o = eo_add(EVAS_TEXT_CLASS, evas); |
57 | o_texts[i] = o; | 57 | o_texts[i] = o; |
58 | efl_text_properties_font_set(o, "Vera-Bold", 10); | 58 | efl_text_properties_font_set(o, "Vera-Bold", 10); |
59 | efl_text_set(o, icons[i % 13]); | 59 | efl_text_set(o, icons[i % 13]); |
diff --git a/src/bin/widgets_file_icons_2_grouped.c b/src/bin/widgets_file_icons_2_grouped.c index 45e73c0..7f14482 100644 --- a/src/bin/widgets_file_icons_2_grouped.c +++ b/src/bin/widgets_file_icons_2_grouped.c | |||
@@ -46,14 +46,14 @@ static void _setup(void) | |||
46 | Evas_Object *o; | 46 | Evas_Object *o; |
47 | for (i = 0; i < NUM; i++) | 47 | for (i = 0; i < NUM; i++) |
48 | { | 48 | { |
49 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 49 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
50 | o_images[i] = o; | 50 | o_images[i] = o; |
51 | efl_file_set(o, build_path(icons[i % 13]), NULL); | 51 | efl_file_set(o, build_path(icons[i % 13]), NULL); |
52 | efl_gfx_fill_set(o, 0, 0, ICON_SIZE, ICON_SIZE); | 52 | efl_gfx_fill_set(o, 0, 0, ICON_SIZE, ICON_SIZE); |
53 | efl_gfx_size_set(o, ICON_SIZE, ICON_SIZE); | 53 | efl_gfx_size_set(o, ICON_SIZE, ICON_SIZE); |
54 | efl_gfx_visible_set(o, EINA_TRUE); | 54 | efl_gfx_visible_set(o, EINA_TRUE); |
55 | 55 | ||
56 | eo_add(&o, EVAS_TEXT_CLASS, evas); | 56 | o = eo_add(EVAS_TEXT_CLASS, evas); |
57 | o_texts[i] = o; | 57 | o_texts[i] = o; |
58 | efl_text_properties_font_set(o, "Vera-Bold", 10); | 58 | efl_text_properties_font_set(o, "Vera-Bold", 10); |
59 | efl_text_set(o, icons[i % 13]); | 59 | efl_text_set(o, icons[i % 13]); |
diff --git a/src/bin/widgets_file_icons_2_same.c b/src/bin/widgets_file_icons_2_same.c index 2d7d9c3..113cc5b 100644 --- a/src/bin/widgets_file_icons_2_same.c +++ b/src/bin/widgets_file_icons_2_same.c | |||
@@ -31,14 +31,14 @@ static void _setup(void) | |||
31 | Evas_Object *o; | 31 | Evas_Object *o; |
32 | for (i = 0; i < NUM; i++) | 32 | for (i = 0; i < NUM; i++) |
33 | { | 33 | { |
34 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 34 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
35 | o_images[i] = o; | 35 | o_images[i] = o; |
36 | efl_file_set(o, build_path(icons[i % 1]), NULL); | 36 | efl_file_set(o, build_path(icons[i % 1]), NULL); |
37 | efl_gfx_fill_set(o, 0, 0, ICON_SIZE, ICON_SIZE); | 37 | efl_gfx_fill_set(o, 0, 0, ICON_SIZE, ICON_SIZE); |
38 | efl_gfx_size_set(o, ICON_SIZE, ICON_SIZE); | 38 | efl_gfx_size_set(o, ICON_SIZE, ICON_SIZE); |
39 | efl_gfx_visible_set(o, EINA_TRUE); | 39 | efl_gfx_visible_set(o, EINA_TRUE); |
40 | 40 | ||
41 | eo_add(&o, EVAS_TEXT_CLASS, evas); | 41 | o = eo_add(EVAS_TEXT_CLASS, evas); |
42 | o_texts[i] = o; | 42 | o_texts[i] = o; |
43 | efl_text_properties_font_set(o, "Vera-Bold", 10); | 43 | efl_text_properties_font_set(o, "Vera-Bold", 10); |
44 | efl_text_set(o, icons[i % 1]); | 44 | efl_text_set(o, icons[i % 1]); |
diff --git a/src/bin/widgets_file_icons_2_same_grouped.c b/src/bin/widgets_file_icons_2_same_grouped.c index 91b81df..5b631b9 100644 --- a/src/bin/widgets_file_icons_2_same_grouped.c +++ b/src/bin/widgets_file_icons_2_same_grouped.c | |||
@@ -31,14 +31,14 @@ static void _setup(void) | |||
31 | Evas_Object *o; | 31 | Evas_Object *o; |
32 | for (i = 0; i < NUM; i++) | 32 | for (i = 0; i < NUM; i++) |
33 | { | 33 | { |
34 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 34 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
35 | o_images[i] = o; | 35 | o_images[i] = o; |
36 | efl_file_set(o, build_path(icons[i % 1]), NULL); | 36 | efl_file_set(o, build_path(icons[i % 1]), NULL); |
37 | efl_gfx_fill_set(o, 0, 0, ICON_SIZE, ICON_SIZE); | 37 | efl_gfx_fill_set(o, 0, 0, ICON_SIZE, ICON_SIZE); |
38 | efl_gfx_size_set(o, ICON_SIZE, ICON_SIZE); | 38 | efl_gfx_size_set(o, ICON_SIZE, ICON_SIZE); |
39 | efl_gfx_visible_set(o, EINA_TRUE); | 39 | efl_gfx_visible_set(o, EINA_TRUE); |
40 | 40 | ||
41 | eo_add(&o, EVAS_TEXT_CLASS, evas); | 41 | o = eo_add(EVAS_TEXT_CLASS, evas); |
42 | o_texts[i] = o; | 42 | o_texts[i] = o; |
43 | efl_text_properties_font_set(o, "Vera-Bold", 10); | 43 | efl_text_properties_font_set(o, "Vera-Bold", 10); |
44 | efl_text_set(o, icons[i % 1]); | 44 | efl_text_set(o, icons[i % 1]); |
diff --git a/src/bin/widgets_file_icons_3.c b/src/bin/widgets_file_icons_3.c index c76b270..be9f393 100644 --- a/src/bin/widgets_file_icons_3.c +++ b/src/bin/widgets_file_icons_3.c | |||
@@ -46,14 +46,14 @@ static void _setup(void) | |||
46 | Evas_Object *o; | 46 | Evas_Object *o; |
47 | for (i = 0; i < NUM; i++) | 47 | for (i = 0; i < NUM; i++) |
48 | { | 48 | { |
49 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 49 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
50 | o_images[i] = o; | 50 | o_images[i] = o; |
51 | efl_file_set(o, build_path(icons[i % 13]), NULL); | 51 | efl_file_set(o, build_path(icons[i % 13]), NULL); |
52 | efl_gfx_fill_set(o, 0, 0, ICON_SIZE, ICON_SIZE); | 52 | efl_gfx_fill_set(o, 0, 0, ICON_SIZE, ICON_SIZE); |
53 | efl_gfx_size_set(o, ICON_SIZE, ICON_SIZE); | 53 | efl_gfx_size_set(o, ICON_SIZE, ICON_SIZE); |
54 | efl_gfx_visible_set(o, EINA_TRUE); | 54 | efl_gfx_visible_set(o, EINA_TRUE); |
55 | 55 | ||
56 | eo_add(&o, EVAS_TEXT_CLASS, evas); | 56 | o = eo_add(EVAS_TEXT_CLASS, evas); |
57 | o_texts[i] = o; | 57 | o_texts[i] = o; |
58 | efl_text_properties_font_set(o, "Vera-Bold", 10); | 58 | efl_text_properties_font_set(o, "Vera-Bold", 10); |
59 | efl_text_set(o, icons[i % 13]); | 59 | efl_text_set(o, icons[i % 13]); |
diff --git a/src/bin/widgets_file_icons_4.c b/src/bin/widgets_file_icons_4.c index 9dcbe53..a23ce7b 100644 --- a/src/bin/widgets_file_icons_4.c +++ b/src/bin/widgets_file_icons_4.c | |||
@@ -46,14 +46,14 @@ static void _setup(void) | |||
46 | Evas_Object *o; | 46 | Evas_Object *o; |
47 | for (i = 0; i < NUM; i++) | 47 | for (i = 0; i < NUM; i++) |
48 | { | 48 | { |
49 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 49 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
50 | o_images[i] = o; | 50 | o_images[i] = o; |
51 | efl_file_set(o, build_path(icons[i % 13]), NULL); | 51 | efl_file_set(o, build_path(icons[i % 13]), NULL); |
52 | efl_gfx_fill_set(o, 0, 0, ICON_SIZE, ICON_SIZE); | 52 | efl_gfx_fill_set(o, 0, 0, ICON_SIZE, ICON_SIZE); |
53 | efl_gfx_size_set(o, ICON_SIZE, ICON_SIZE); | 53 | efl_gfx_size_set(o, ICON_SIZE, ICON_SIZE); |
54 | efl_gfx_visible_set(o, EINA_TRUE); | 54 | efl_gfx_visible_set(o, EINA_TRUE); |
55 | 55 | ||
56 | eo_add(&o, EVAS_TEXT_CLASS, evas); | 56 | o = eo_add(EVAS_TEXT_CLASS, evas); |
57 | o_texts[i] = o; | 57 | o_texts[i] = o; |
58 | efl_text_properties_font_set(o, "Vera-Bold", 10); | 58 | efl_text_properties_font_set(o, "Vera-Bold", 10); |
59 | efl_text_set(o, icons[i % 13]); | 59 | efl_text_set(o, icons[i % 13]); |
diff --git a/src/bin/widgets_list_1.c b/src/bin/widgets_list_1.c index 9d2f86e..b0e9085 100644 --- a/src/bin/widgets_list_1.c +++ b/src/bin/widgets_list_1.c | |||
@@ -62,7 +62,7 @@ static void _setup(void) | |||
62 | Evas_Object *o; | 62 | Evas_Object *o; |
63 | for (i = 0; i < NUM; i++) | 63 | for (i = 0; i < NUM; i++) |
64 | { | 64 | { |
65 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 65 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
66 | o_images[i] = o; | 66 | o_images[i] = o; |
67 | evas_obj_image_filled_set(o, 1); | 67 | evas_obj_image_filled_set(o, 1); |
68 | evas_obj_image_border_set(o, 2, 2, 2, 2); | 68 | evas_obj_image_border_set(o, 2, 2, 2, 2); |
@@ -70,7 +70,7 @@ static void _setup(void) | |||
70 | efl_gfx_size_set(o, win_w, ICON_SIZE); | 70 | efl_gfx_size_set(o, win_w, ICON_SIZE); |
71 | efl_gfx_visible_set(o, EINA_TRUE); | 71 | efl_gfx_visible_set(o, EINA_TRUE); |
72 | 72 | ||
73 | eo_add(&o, EVAS_TEXT_CLASS, evas); | 73 | o = eo_add(EVAS_TEXT_CLASS, evas); |
74 | o_texts[i] = o; | 74 | o_texts[i] = o; |
75 | efl_text_properties_font_set(o, "Vera-Bold", 10); | 75 | efl_text_properties_font_set(o, "Vera-Bold", 10); |
76 | efl_text_set(o, labels[i % 26]); | 76 | efl_text_set(o, labels[i % 26]); |
diff --git a/src/bin/widgets_list_1_grouped.c b/src/bin/widgets_list_1_grouped.c index 66c992f..07c9d87 100644 --- a/src/bin/widgets_list_1_grouped.c +++ b/src/bin/widgets_list_1_grouped.c | |||
@@ -62,7 +62,7 @@ static void _setup(void) | |||
62 | Evas_Object *o; | 62 | Evas_Object *o; |
63 | for (i = 0; i < NUM; i++) | 63 | for (i = 0; i < NUM; i++) |
64 | { | 64 | { |
65 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 65 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
66 | o_images[i] = o; | 66 | o_images[i] = o; |
67 | evas_obj_image_filled_set(o, 1); | 67 | evas_obj_image_filled_set(o, 1); |
68 | evas_obj_image_border_set(o, 2, 2, 2, 2); | 68 | evas_obj_image_border_set(o, 2, 2, 2, 2); |
@@ -70,7 +70,7 @@ static void _setup(void) | |||
70 | efl_gfx_size_set(o, win_w, ICON_SIZE); | 70 | efl_gfx_size_set(o, win_w, ICON_SIZE); |
71 | efl_gfx_visible_set(o, EINA_TRUE); | 71 | efl_gfx_visible_set(o, EINA_TRUE); |
72 | 72 | ||
73 | eo_add(&o, EVAS_TEXT_CLASS, evas); | 73 | o = eo_add(EVAS_TEXT_CLASS, evas); |
74 | o_texts[i] = o; | 74 | o_texts[i] = o; |
75 | efl_text_properties_font_set(o, "Vera-Bold", 10); | 75 | efl_text_properties_font_set(o, "Vera-Bold", 10); |
76 | efl_text_set(o, labels[i % 26]); | 76 | efl_text_set(o, labels[i % 26]); |
diff --git a/src/bin/widgets_list_2.c b/src/bin/widgets_list_2.c index 21a5a4d..e232d7d 100644 --- a/src/bin/widgets_list_2.c +++ b/src/bin/widgets_list_2.c | |||
@@ -62,7 +62,7 @@ static void _setup(void) | |||
62 | Evas_Object *o; | 62 | Evas_Object *o; |
63 | for (i = 0; i < NUM; i++) | 63 | for (i = 0; i < NUM; i++) |
64 | { | 64 | { |
65 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 65 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
66 | o_images[i] = o; | 66 | o_images[i] = o; |
67 | evas_obj_image_filled_set(o, 1); | 67 | evas_obj_image_filled_set(o, 1); |
68 | evas_obj_image_border_set(o, 2, 2, 2, 2); | 68 | evas_obj_image_border_set(o, 2, 2, 2, 2); |
@@ -70,7 +70,7 @@ static void _setup(void) | |||
70 | efl_gfx_size_set(o, win_w, ICON_SIZE); | 70 | efl_gfx_size_set(o, win_w, ICON_SIZE); |
71 | efl_gfx_visible_set(o, EINA_TRUE); | 71 | efl_gfx_visible_set(o, EINA_TRUE); |
72 | 72 | ||
73 | eo_add(&o, EVAS_TEXT_CLASS, evas); | 73 | o = eo_add(EVAS_TEXT_CLASS, evas); |
74 | o_texts[i] = o; | 74 | o_texts[i] = o; |
75 | efl_text_properties_font_set(o, "Vera-Bold", 10); | 75 | efl_text_properties_font_set(o, "Vera-Bold", 10); |
76 | efl_text_set(o, labels[i % 26]); | 76 | efl_text_set(o, labels[i % 26]); |
diff --git a/src/bin/widgets_list_2_grouped.c b/src/bin/widgets_list_2_grouped.c index ab20674..c3da64a 100644 --- a/src/bin/widgets_list_2_grouped.c +++ b/src/bin/widgets_list_2_grouped.c | |||
@@ -62,7 +62,7 @@ static void _setup(void) | |||
62 | Evas_Object *o; | 62 | Evas_Object *o; |
63 | for (i = 0; i < NUM; i++) | 63 | for (i = 0; i < NUM; i++) |
64 | { | 64 | { |
65 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 65 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
66 | o_images[i] = o; | 66 | o_images[i] = o; |
67 | evas_obj_image_filled_set(o, 1); | 67 | evas_obj_image_filled_set(o, 1); |
68 | evas_obj_image_border_set(o, 2, 2, 2, 2); | 68 | evas_obj_image_border_set(o, 2, 2, 2, 2); |
@@ -70,7 +70,7 @@ static void _setup(void) | |||
70 | efl_gfx_size_set(o, win_w, ICON_SIZE); | 70 | efl_gfx_size_set(o, win_w, ICON_SIZE); |
71 | efl_gfx_visible_set(o, EINA_TRUE); | 71 | efl_gfx_visible_set(o, EINA_TRUE); |
72 | 72 | ||
73 | eo_add(&o, EVAS_TEXT_CLASS, evas); | 73 | o = eo_add(EVAS_TEXT_CLASS, evas); |
74 | o_texts[i] = o; | 74 | o_texts[i] = o; |
75 | efl_text_properties_font_set(o, "Vera-Bold", 10); | 75 | efl_text_properties_font_set(o, "Vera-Bold", 10); |
76 | efl_text_set(o, labels[i % 26]); | 76 | efl_text_set(o, labels[i % 26]); |
diff --git a/src/bin/widgets_list_3.c b/src/bin/widgets_list_3.c index f197e60..8e6af2c 100644 --- a/src/bin/widgets_list_3.c +++ b/src/bin/widgets_list_3.c | |||
@@ -83,7 +83,7 @@ static void _setup(void) | |||
83 | Evas_Object *o; | 83 | Evas_Object *o; |
84 | for (i = 0; i < NUM; i++) | 84 | for (i = 0; i < NUM; i++) |
85 | { | 85 | { |
86 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 86 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
87 | o_images[i] = o; | 87 | o_images[i] = o; |
88 | evas_obj_image_filled_set(o, 1); | 88 | evas_obj_image_filled_set(o, 1); |
89 | evas_obj_image_border_set(o, 2, 2, 2, 2); | 89 | evas_obj_image_border_set(o, 2, 2, 2, 2); |
@@ -91,7 +91,7 @@ static void _setup(void) | |||
91 | efl_gfx_size_set(o, win_w, ICON_SIZE); | 91 | efl_gfx_size_set(o, win_w, ICON_SIZE); |
92 | efl_gfx_visible_set(o, EINA_TRUE); | 92 | efl_gfx_visible_set(o, EINA_TRUE); |
93 | 93 | ||
94 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 94 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
95 | o_icons[i] = o; | 95 | o_icons[i] = o; |
96 | evas_obj_image_filled_set(o, 1); | 96 | evas_obj_image_filled_set(o, 1); |
97 | evas_obj_image_border_set(o, 2, 2, 2, 2); | 97 | evas_obj_image_border_set(o, 2, 2, 2, 2); |
@@ -99,7 +99,7 @@ static void _setup(void) | |||
99 | efl_gfx_size_set(o, ICON_SIZE - 8, ICON_SIZE - 8); | 99 | efl_gfx_size_set(o, ICON_SIZE - 8, ICON_SIZE - 8); |
100 | efl_gfx_visible_set(o, EINA_TRUE); | 100 | efl_gfx_visible_set(o, EINA_TRUE); |
101 | 101 | ||
102 | eo_add(&o, EVAS_TEXT_CLASS, evas); | 102 | o = eo_add(EVAS_TEXT_CLASS, evas); |
103 | o_texts[i] = o; | 103 | o_texts[i] = o; |
104 | efl_text_properties_font_set(o, "Vera-Bold", 10); | 104 | efl_text_properties_font_set(o, "Vera-Bold", 10); |
105 | efl_text_set(o, labels[i % 26]); | 105 | efl_text_set(o, labels[i % 26]); |
diff --git a/src/bin/widgets_list_3_grouped.c b/src/bin/widgets_list_3_grouped.c index b6f3bcc..dda2692 100644 --- a/src/bin/widgets_list_3_grouped.c +++ b/src/bin/widgets_list_3_grouped.c | |||
@@ -83,7 +83,7 @@ static void _setup(void) | |||
83 | Evas_Object *o; | 83 | Evas_Object *o; |
84 | for (i = 0; i < NUM; i++) | 84 | for (i = 0; i < NUM; i++) |
85 | { | 85 | { |
86 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 86 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
87 | o_images[i] = o; | 87 | o_images[i] = o; |
88 | evas_obj_image_filled_set(o, 1); | 88 | evas_obj_image_filled_set(o, 1); |
89 | evas_obj_image_border_set(o, 2, 2, 2, 2); | 89 | evas_obj_image_border_set(o, 2, 2, 2, 2); |
@@ -91,7 +91,7 @@ static void _setup(void) | |||
91 | efl_gfx_size_set(o, win_w, ICON_SIZE); | 91 | efl_gfx_size_set(o, win_w, ICON_SIZE); |
92 | efl_gfx_visible_set(o, EINA_TRUE); | 92 | efl_gfx_visible_set(o, EINA_TRUE); |
93 | 93 | ||
94 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 94 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
95 | o_icons[i] = o; | 95 | o_icons[i] = o; |
96 | evas_obj_image_filled_set(o, 1); | 96 | evas_obj_image_filled_set(o, 1); |
97 | evas_obj_image_border_set(o, 2, 2, 2, 2); | 97 | evas_obj_image_border_set(o, 2, 2, 2, 2); |
@@ -99,7 +99,7 @@ static void _setup(void) | |||
99 | efl_gfx_size_set(o, ICON_SIZE - 8, ICON_SIZE - 8); | 99 | efl_gfx_size_set(o, ICON_SIZE - 8, ICON_SIZE - 8); |
100 | efl_gfx_visible_set(o, EINA_TRUE); | 100 | efl_gfx_visible_set(o, EINA_TRUE); |
101 | 101 | ||
102 | eo_add(&o, EVAS_TEXT_CLASS, evas); | 102 | o = eo_add(EVAS_TEXT_CLASS, evas); |
103 | o_texts[i] = o; | 103 | o_texts[i] = o; |
104 | efl_text_properties_font_set(o, "Vera-Bold", 10); | 104 | efl_text_properties_font_set(o, "Vera-Bold", 10); |
105 | efl_text_set(o, labels[i % 26]); | 105 | efl_text_set(o, labels[i % 26]); |
diff --git a/src/bin/widgets_list_4.c b/src/bin/widgets_list_4.c index cb65a59..2779b63 100644 --- a/src/bin/widgets_list_4.c +++ b/src/bin/widgets_list_4.c | |||
@@ -83,7 +83,7 @@ static void _setup(void) | |||
83 | Evas_Object *o; | 83 | Evas_Object *o; |
84 | for (i = 0; i < NUM; i++) | 84 | for (i = 0; i < NUM; i++) |
85 | { | 85 | { |
86 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 86 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
87 | o_images[i] = o; | 87 | o_images[i] = o; |
88 | evas_obj_image_filled_set(o, 1); | 88 | evas_obj_image_filled_set(o, 1); |
89 | evas_obj_image_border_set(o, 2, 2, 2, 2); | 89 | evas_obj_image_border_set(o, 2, 2, 2, 2); |
@@ -91,7 +91,7 @@ static void _setup(void) | |||
91 | efl_gfx_size_set(o, win_w, ICON_SIZE); | 91 | efl_gfx_size_set(o, win_w, ICON_SIZE); |
92 | efl_gfx_visible_set(o, EINA_TRUE); | 92 | efl_gfx_visible_set(o, EINA_TRUE); |
93 | 93 | ||
94 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 94 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
95 | o_icons[i] = o; | 95 | o_icons[i] = o; |
96 | evas_obj_image_filled_set(o, 1); | 96 | evas_obj_image_filled_set(o, 1); |
97 | evas_obj_image_border_set(o, 2, 2, 2, 2); | 97 | evas_obj_image_border_set(o, 2, 2, 2, 2); |
@@ -99,7 +99,7 @@ static void _setup(void) | |||
99 | efl_gfx_size_set(o, ICON_SIZE - 8, ICON_SIZE - 8); | 99 | efl_gfx_size_set(o, ICON_SIZE - 8, ICON_SIZE - 8); |
100 | efl_gfx_visible_set(o, EINA_TRUE); | 100 | efl_gfx_visible_set(o, EINA_TRUE); |
101 | 101 | ||
102 | eo_add(&o, EVAS_TEXT_CLASS, evas); | 102 | o = eo_add(EVAS_TEXT_CLASS, evas); |
103 | o_texts[i] = o; | 103 | o_texts[i] = o; |
104 | efl_text_properties_font_set(o, "Vera-Bold", 10); | 104 | efl_text_properties_font_set(o, "Vera-Bold", 10); |
105 | efl_text_set(o, labels[i % 26]); | 105 | efl_text_set(o, labels[i % 26]); |
diff --git a/src/bin/widgets_list_4_grouped.c b/src/bin/widgets_list_4_grouped.c index 56face9..8283151 100644 --- a/src/bin/widgets_list_4_grouped.c +++ b/src/bin/widgets_list_4_grouped.c | |||
@@ -83,7 +83,7 @@ static void _setup(void) | |||
83 | Evas_Object *o; | 83 | Evas_Object *o; |
84 | for (i = 0; i < NUM; i++) | 84 | for (i = 0; i < NUM; i++) |
85 | { | 85 | { |
86 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 86 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
87 | o_images[i] = o; | 87 | o_images[i] = o; |
88 | evas_obj_image_filled_set(o, 1); | 88 | evas_obj_image_filled_set(o, 1); |
89 | evas_obj_image_border_set(o, 2, 2, 2, 2); | 89 | evas_obj_image_border_set(o, 2, 2, 2, 2); |
@@ -91,7 +91,7 @@ static void _setup(void) | |||
91 | efl_gfx_size_set(o, win_w, ICON_SIZE); | 91 | efl_gfx_size_set(o, win_w, ICON_SIZE); |
92 | efl_gfx_visible_set(o, EINA_TRUE); | 92 | efl_gfx_visible_set(o, EINA_TRUE); |
93 | 93 | ||
94 | eo_add(&o, EVAS_IMAGE_CLASS, evas); | 94 | o = eo_add(EVAS_IMAGE_CLASS, evas); |
95 | o_icons[i] = o; | 95 | o_icons[i] = o; |
96 | evas_obj_image_filled_set(o, 1); | 96 | evas_obj_image_filled_set(o, 1); |
97 | evas_obj_image_border_set(o, 2, 2, 2, 2); | 97 | evas_obj_image_border_set(o, 2, 2, 2, 2); |
@@ -99,7 +99,7 @@ static void _setup(void) | |||
99 | efl_gfx_size_set(o, ICON_SIZE - 8, ICON_SIZE - 8); | 99 | efl_gfx_size_set(o, ICON_SIZE - 8, ICON_SIZE - 8); |
100 | efl_gfx_visible_set(o, EINA_TRUE); | 100 | efl_gfx_visible_set(o, EINA_TRUE); |
101 | 101 | ||
102 | eo_add(&o, EVAS_TEXT_CLASS, evas); | 102 | o = eo_add(EVAS_TEXT_CLASS, evas); |
103 | o_texts[i] = o; | 103 | o_texts[i] = o; |
104 | efl_text_properties_font_set(o, "Vera-Bold", 10); | 104 | efl_text_properties_font_set(o, "Vera-Bold", 10); |
105 | efl_text_set(o, labels[i % 26]); | 105 | efl_text_set(o, labels[i % 26]); |