summaryrefslogtreecommitdiff
path: root/src/bin/widgets_list_2_grouped.c
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-03-03 14:03:49 +0000
committerTom Hacohen <tom@stosb.com>2016-03-03 14:03:49 +0000
commit088df1425e5ee03f3f26ce209b2040985e8231c5 (patch)
tree8392f28ad2068908d4edeef73c23642c97f91813 /src/bin/widgets_list_2_grouped.c
parent1c72554acc7b7390e65b487d2a428b6faea068b8 (diff)
Adjust according to recent Eo4 changes.
Diffstat (limited to 'src/bin/widgets_list_2_grouped.c')
-rw-r--r--src/bin/widgets_list_2_grouped.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/bin/widgets_list_2_grouped.c b/src/bin/widgets_list_2_grouped.c
index 3ddb9fa..c3da64a 100644
--- a/src/bin/widgets_list_2_grouped.c
+++ b/src/bin/widgets_list_2_grouped.c
@@ -64,26 +64,26 @@ static void _setup(void)
64 { 64 {
65 o = eo_add(EVAS_IMAGE_CLASS, evas); 65 o = eo_add(EVAS_IMAGE_CLASS, evas);
66 o_images[i] = o; 66 o_images[i] = o;
67 eo_do(o, evas_obj_image_filled_set(1), 67 evas_obj_image_filled_set(o, 1);
68 evas_obj_image_border_set(2, 2, 2, 2), 68 evas_obj_image_border_set(o, 2, 2, 2, 2);
69 efl_file_set(build_path("pan.png"), NULL), 69 efl_file_set(o, build_path("pan.png"), NULL);
70 efl_gfx_size_set(win_w, ICON_SIZE), 70 efl_gfx_size_set(o, win_w, ICON_SIZE);
71 efl_gfx_visible_set(EINA_TRUE)); 71 efl_gfx_visible_set(o, EINA_TRUE);
72 72
73 o = eo_add(EVAS_TEXT_CLASS, evas); 73 o = eo_add(EVAS_TEXT_CLASS, evas);
74 o_texts[i] = o; 74 o_texts[i] = o;
75 eo_do(o, efl_text_properties_font_set("Vera-Bold", 10), 75 efl_text_properties_font_set(o, "Vera-Bold", 10);
76 efl_text_set(labels[i % 26]), 76 efl_text_set(o, labels[i % 26]);
77 efl_gfx_color_set(0, 0, 0, 255), 77 efl_gfx_color_set(o, 0, 0, 0, 255);
78 efl_gfx_visible_set(EINA_TRUE)); 78 efl_gfx_visible_set(o, EINA_TRUE);
79 } 79 }
80 for (i = 0; i < NUM; i++) 80 for (i = 0; i < NUM; i++)
81 { 81 {
82 eo_do(o_images[i], efl_gfx_stack_raise()); 82 efl_gfx_stack_raise(o_images[i]);
83 } 83 }
84 for (i = 0; i < NUM; i++) 84 for (i = 0; i < NUM; i++)
85 { 85 {
86 eo_do(o_texts[i], efl_gfx_stack_raise()); 86 efl_gfx_stack_raise(o_texts[i]);
87 } 87 }
88 done = 0; 88 done = 0;
89} 89}
@@ -108,10 +108,10 @@ static void _loop(double t, int f)
108 y = 0 - f; 108 y = 0 - f;
109 for (i = 0; i < NUM; i++) 109 for (i = 0; i < NUM; i++)
110 { 110 {
111 eo_do(o_images[i], efl_gfx_position_set(x, y)); 111 efl_gfx_position_set(o_images[i], x, y);
112 eo_do(o_texts[i], efl_gfx_size_get(&tw, &th)); 112 efl_gfx_size_get(o_texts[i], &tw, &th);
113 cent = (ICON_SIZE - th) / 2; 113 cent = (ICON_SIZE - th) / 2;
114 eo_do(o_texts[i], efl_gfx_position_set(x + 8, y + cent)); 114 efl_gfx_position_set(o_texts[i], x + 8, y + cent);
115 y += ICON_SIZE; 115 y += ICON_SIZE;
116 } 116 }
117 FPS_STD(NAME); 117 FPS_STD(NAME);