summaryrefslogtreecommitdiff
path: root/src/bin/widgets_file_icons_2_same.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2015-04-09 13:31:59 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-04-09 13:31:59 +0200
commit9b7d97d5034de22cf8090f5f598eeceab5aa1165 (patch)
tree44af2389b79d7c3ec134ac7f8f059fcb1f154d60 /src/bin/widgets_file_icons_2_same.c
parentaccb76125ff60037d215ed4d752426ce69dca553 (diff)
move to EFL 1.14 interfaces.devs/cedric/efl-1.14
Diffstat (limited to 'src/bin/widgets_file_icons_2_same.c')
-rw-r--r--src/bin/widgets_file_icons_2_same.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/bin/widgets_file_icons_2_same.c b/src/bin/widgets_file_icons_2_same.c
index 983b0d8..26fb8ad 100644
--- a/src/bin/widgets_file_icons_2_same.c
+++ b/src/bin/widgets_file_icons_2_same.c
@@ -34,16 +34,16 @@ static void _setup(void)
34 o = eo_add(EVAS_IMAGE_CLASS, evas); 34 o = eo_add(EVAS_IMAGE_CLASS, evas);
35 o_images[i] = o; 35 o_images[i] = o;
36 eo_do(o, efl_file_set(build_path(icons[i % 1]), NULL), 36 eo_do(o, efl_file_set(build_path(icons[i % 1]), NULL),
37 evas_obj_image_fill_set(0, 0, ICON_SIZE, ICON_SIZE), 37 efl_gfx_fill_set(0, 0, ICON_SIZE, ICON_SIZE),
38 evas_obj_size_set(ICON_SIZE, ICON_SIZE), 38 efl_gfx_size_set(ICON_SIZE, ICON_SIZE),
39 evas_obj_visibility_set(EINA_TRUE)); 39 efl_gfx_visible_set(EINA_TRUE));
40 40
41 o = eo_add(EVAS_TEXT_CLASS, evas); 41 o = eo_add(EVAS_TEXT_CLASS, evas);
42 o_texts[i] = o; 42 o_texts[i] = o;
43 eo_do(o, efl_text_properties_font_set("Vera-Bold", 10), 43 eo_do(o, efl_text_properties_font_set("Vera-Bold", 10),
44 efl_text_set(icons[i % 1]), 44 efl_text_set(icons[i % 1]),
45 evas_obj_color_set(0, 0, 0, 255), 45 efl_gfx_color_set(0, 0, 0, 255),
46 evas_obj_visibility_set(EINA_TRUE)); 46 efl_gfx_visible_set(EINA_TRUE));
47 } 47 }
48 done = 0; 48 done = 0;
49} 49}
@@ -68,10 +68,10 @@ static void _loop(double t, int f)
68 y = 0 - f; 68 y = 0 - f;
69 for (i = 0; i < NUM; i++) 69 for (i = 0; i < NUM; i++)
70 { 70 {
71 eo_do(o_images[i], evas_obj_position_set(x + 8, y)); 71 eo_do(o_images[i], efl_gfx_position_set(x + 8, y));
72 eo_do(o_texts[i], evas_obj_size_get(&tw, &th)); 72 eo_do(o_texts[i], efl_gfx_size_get(&tw, &th));
73 cent = (ICON_SIZE + 16 - tw) / 2; 73 cent = (ICON_SIZE + 16 - tw) / 2;
74 eo_do(o_texts[i], evas_obj_position_set(x + cent, y + ICON_SIZE + 4)); 74 eo_do(o_texts[i], efl_gfx_position_set(x + cent, y + ICON_SIZE + 4));
75 x += ICON_SIZE + 16; 75 x += ICON_SIZE + 16;
76 if (x > win_w) 76 if (x > win_w)
77 { 77 {