summaryrefslogtreecommitdiff
path: root/src/bin/widgets_file_icons_2_same.c
diff options
context:
space:
mode:
authorYakov Goldberg <yakov.goldberg@gmail.com>2013-01-23 15:05:09 +0000
committerYakov Goldberg <yakov.goldberg@gmail.com>2013-01-23 15:05:09 +0000
commitfaf1579d35c232607a0bfa39b33a185071e843ed (patch)
tree9bce93c3e50c6b842fe0165ec1fa9f801db4d04d /src/bin/widgets_file_icons_2_same.c
parent42339e1e323b23382e84b5ff781ec8565edeaba8 (diff)
expedite: porting to Eo
Signed-off-by: Yakov Goldberg <yakov.goldberg@gmail.com> SVN revision: 83180
Diffstat (limited to 'src/bin/widgets_file_icons_2_same.c')
-rw-r--r--src/bin/widgets_file_icons_2_same.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/bin/widgets_file_icons_2_same.c b/src/bin/widgets_file_icons_2_same.c
index 7dbf9ff..cb2284d 100644
--- a/src/bin/widgets_file_icons_2_same.c
+++ b/src/bin/widgets_file_icons_2_same.c
@@ -31,19 +31,19 @@ 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 o = evas_object_image_add(evas); 34 o = eo_add(EVAS_OBJ_IMAGE_CLASS, evas);
35 o_images[i] = o; 35 o_images[i] = o;
36 evas_object_image_file_set(o, build_path(icons[i % 1]), NULL); 36 eo_do(o, evas_obj_image_file_set(build_path(icons[i % 1]), NULL),
37 evas_object_image_fill_set(o, 0, 0, ICON_SIZE, ICON_SIZE); 37 evas_obj_image_fill_set(0, 0, ICON_SIZE, ICON_SIZE),
38 evas_object_resize(o, ICON_SIZE, ICON_SIZE); 38 evas_obj_size_set(ICON_SIZE, ICON_SIZE),
39 evas_object_show(o); 39 evas_obj_visibility_set(EINA_TRUE));
40 40
41 o = evas_object_text_add(evas); 41 o = eo_add(EVAS_OBJ_TEXT_CLASS, evas);
42 o_texts[i] = o; 42 o_texts[i] = o;
43 evas_object_text_font_set(o, "Vera-Bold", 10); 43 eo_do(o, evas_obj_text_font_set("Vera-Bold", 10),
44 evas_object_text_text_set(o, icons[i % 1]); 44 evas_obj_text_text_set(icons[i % 1]),
45 evas_object_color_set(o, 0, 0, 0, 255); 45 evas_obj_color_set(0, 0, 0, 255),
46 evas_object_show(o); 46 evas_obj_visibility_set(EINA_TRUE));
47 } 47 }
48 done = 0; 48 done = 0;
49} 49}
@@ -52,8 +52,8 @@ static void _setup(void)
52static void _cleanup(void) 52static void _cleanup(void)
53{ 53{
54 int i; 54 int i;
55 for (i = 0; i < NUM; i++) evas_object_del(o_images[i]); 55 for (i = 0; i < NUM; i++) eo_del(o_images[i]);
56 for (i = 0; i < NUM; i++) evas_object_del(o_texts[i]); 56 for (i = 0; i < NUM; i++) eo_del(o_texts[i]);
57} 57}
58 58
59/* loop - do things */ 59/* loop - do things */
@@ -65,10 +65,10 @@ static void _loop(double t, int f)
65 y = 0 - f; 65 y = 0 - f;
66 for (i = 0; i < NUM; i++) 66 for (i = 0; i < NUM; i++)
67 { 67 {
68 evas_object_move(o_images[i], x + 8, y); 68 eo_do(o_images[i], evas_obj_position_set(x + 8, y));
69 evas_object_geometry_get(o_texts[i], NULL, NULL, &tw, &th); 69 eo_do(o_texts[i], evas_obj_size_get(&tw, &th));
70 cent = (ICON_SIZE + 16 - tw) / 2; 70 cent = (ICON_SIZE + 16 - tw) / 2;
71 evas_object_move(o_texts[i], x + cent, y + ICON_SIZE + 4); 71 eo_do(o_texts[i], evas_obj_position_set(x + cent, y + ICON_SIZE + 4));
72 x += ICON_SIZE + 16; 72 x += ICON_SIZE + 16;
73 if (x > win_w) 73 if (x > win_w)
74 { 74 {