summaryrefslogtreecommitdiff
path: root/src/bin/widgets_file_icons_2_same.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2018-06-18 17:17:48 -0400
committerMike Blumenkrantz <zmike@samsung.com>2018-06-18 18:20:58 -0400
commit27e5e02370799b4e9246fe6dde893207d1ac3f3b (patch)
tree76880350d9616ead78f591db9aaa219596f85665 /src/bin/widgets_file_icons_2_same.c
parent1587f3e5eaad79c209f3698b10842ae42b3257bb (diff)
update efl api usage to work with current master
this is a bit hacky in some places where I created wrappers to avoid having to manually rewrite dozens of function calls in places where I was unable to sed/awk the changes that were needed this is a dead project, so submitting such a massive machine-generated patch for review would be futile. any bugs will probably never be seen since this app is no longer used ref T7037
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 1a42604..afe4117 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 = efl_add(EFL_CANVAS_IMAGE_CLASS, evas); 34 o = efl_add(EFL_CANVAS_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, EINA_RECT(0, 0, ICON_SIZE, ICON_SIZE));
38 efl_gfx_size_set(o, ICON_SIZE, ICON_SIZE); 38 efl_gfx_entity_size_set(o, EINA_SIZE2D(ICON_SIZE, ICON_SIZE));
39 efl_gfx_visible_set(o, EINA_TRUE); 39 efl_gfx_entity_visible_set(o, EINA_TRUE);
40 40
41 o = evas_object_text_add(evas); 41 o = evas_object_text_add(evas);
42 o_texts[i] = o; 42 o_texts[i] = o;
43 efl_text_properties_font_set(o, "Vera-Bold", 10); 43 efl_text_font_set(o, "Vera-Bold", 10);
44 efl_text_set(o, icons[i % 1]); 44 efl_text_set(o, icons[i % 1]);
45 efl_gfx_color_set(o, 0, 0, 0, 255); 45 efl_gfx_color_set(o, 0, 0, 0, 255);
46 efl_gfx_visible_set(o, EINA_TRUE); 46 efl_gfx_entity_visible_set(o, 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 efl_gfx_position_set(o_images[i], x + 8, y); 71 efl_gfx_entity_position_set(o_images[i], EINA_POSITION2D(x + 8, y));
72 efl_gfx_size_get(o_texts[i], &tw, &th); 72 exp_size_get(o_texts[i], &tw, &th);
73 cent = (ICON_SIZE + 16 - tw) / 2; 73 cent = (ICON_SIZE + 16 - tw) / 2;
74 efl_gfx_position_set(o_texts[i], x + cent, y + ICON_SIZE + 4); 74 efl_gfx_entity_position_set(o_texts[i], EINA_POSITION2D(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 {