summaryrefslogtreecommitdiff
path: root/src/bin/widgets_list_2_grouped.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_list_2_grouped.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_list_2_grouped.c')
-rw-r--r--src/bin/widgets_list_2_grouped.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/bin/widgets_list_2_grouped.c b/src/bin/widgets_list_2_grouped.c
index 151172b..fb3bfd7 100644
--- a/src/bin/widgets_list_2_grouped.c
+++ b/src/bin/widgets_list_2_grouped.c
@@ -64,17 +64,17 @@ static void _setup(void)
64 { 64 {
65 o = efl_add(EFL_CANVAS_IMAGE_CLASS, evas); 65 o = efl_add(EFL_CANVAS_IMAGE_CLASS, evas);
66 o_images[i] = o; 66 o_images[i] = o;
67 efl_image_border_set(o, 2, 2, 2, 2); 67 efl_gfx_image_border_set(o, 2, 2, 2, 2);
68 efl_file_set(o, build_path("pan.png"), NULL); 68 efl_file_set(o, build_path("pan.png"), NULL);
69 efl_gfx_size_set(o, win_w, ICON_SIZE); 69 efl_gfx_entity_size_set(o, EINA_SIZE2D(win_w, ICON_SIZE));
70 efl_gfx_visible_set(o, EINA_TRUE); 70 efl_gfx_entity_visible_set(o, EINA_TRUE);
71 71
72 o = evas_object_text_add(evas); 72 o = evas_object_text_add(evas);
73 o_texts[i] = o; 73 o_texts[i] = o;
74 efl_text_properties_font_set(o, "Vera-Bold", 10); 74 efl_text_font_set(o, "Vera-Bold", 10);
75 efl_text_set(o, labels[i % 26]); 75 efl_text_set(o, labels[i % 26]);
76 efl_gfx_color_set(o, 0, 0, 0, 255); 76 efl_gfx_color_set(o, 0, 0, 0, 255);
77 efl_gfx_visible_set(o, EINA_TRUE); 77 efl_gfx_entity_visible_set(o, EINA_TRUE);
78 } 78 }
79 for (i = 0; i < NUM; i++) 79 for (i = 0; i < NUM; i++)
80 { 80 {
@@ -107,10 +107,10 @@ static void _loop(double t, int f)
107 y = 0 - f; 107 y = 0 - f;
108 for (i = 0; i < NUM; i++) 108 for (i = 0; i < NUM; i++)
109 { 109 {
110 efl_gfx_position_set(o_images[i], x, y); 110 efl_gfx_entity_position_set(o_images[i], EINA_POSITION2D(x, y));
111 efl_gfx_size_get(o_texts[i], &tw, &th); 111 exp_size_get(o_texts[i], &tw, &th);
112 cent = (ICON_SIZE - th) / 2; 112 cent = (ICON_SIZE - th) / 2;
113 efl_gfx_position_set(o_texts[i], x + 8, y + cent); 113 efl_gfx_entity_position_set(o_texts[i], EINA_POSITION2D(x + 8, y + cent));
114 y += ICON_SIZE; 114 y += ICON_SIZE;
115 } 115 }
116 FPS_STD(NAME); 116 FPS_STD(NAME);