summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-03-02 10:38:07 -0500
committerMike Blumenkrantz <zmike@samsung.com>2019-03-02 10:38:07 -0500
commitd16b7e48bc8a4a8d9cfc3cac2ab574a0c374f401 (patch)
treed9fd47a424e6318e018066dab49a94f64bb9438f
parent780ebf91c5f86c5cb9ce8ad997fc561ab4a3ea97 (diff)
fix examples build for latest efl
-rw-r--r--apps/c/life/src/life_main.c2
-rw-r--r--apps/c/texteditor/src/texteditor_main.c6
-rw-r--r--reference/c/ui/src/focus_main.c6
-rw-r--r--reference/c/ui/src/ui_container.c4
-rw-r--r--reference/c/ui/src/ui_sizing.c4
-rw-r--r--reference/c/ui/src/ui_translation.c2
-rw-r--r--tutorial/c/hello-gui/src/gui_main.c8
-rw-r--r--tutorial/c/lifecycle_ui/src/lifecycle_main.c2
-rw-r--r--unsorted/elementary/efl_ui_list_example_1.c36
9 files changed, 35 insertions, 35 deletions
diff --git a/apps/c/life/src/life_main.c b/apps/c/life/src/life_main.c
index 23642b2..e8bc661 100644
--- a/apps/c/life/src/life_main.c
+++ b/apps/c/life/src/life_main.c
@@ -76,7 +76,7 @@ _life_win_setup(void)
76 life_render_init(win); 76 life_render_init(win);
77 life_render_refresh(win); 77 life_render_refresh(win);
78 78
79 efl_event_callback_add(win, EFL_GFX_ENTITY_EVENT_RESIZE, _life_win_resize, NULL); 79 efl_event_callback_add(win, EFL_GFX_ENTITY_EVENT_SIZE_CHANGED, _life_win_resize, NULL);
80 efl_event_callback_add(win, EFL_EVENT_POINTER_DOWN, _life_win_touch, NULL); 80 efl_event_callback_add(win, EFL_EVENT_POINTER_DOWN, _life_win_touch, NULL);
81 efl_event_callback_add(win, EFL_EVENT_KEY_DOWN, _life_win_key_down, NULL); 81 efl_event_callback_add(win, EFL_EVENT_KEY_DOWN, _life_win_key_down, NULL);
82 82
diff --git a/apps/c/texteditor/src/texteditor_main.c b/apps/c/texteditor/src/texteditor_main.c
index 463039e..8085303 100644
--- a/apps/c/texteditor/src/texteditor_main.c
+++ b/apps/c/texteditor/src/texteditor_main.c
@@ -59,7 +59,7 @@ _gui_toolbar_setup(Efl_Ui_Box *parent)
59 59
60 bar = efl_add(EFL_UI_BOX_CLASS, parent, 60 bar = efl_add(EFL_UI_BOX_CLASS, parent,
61 efl_pack(parent, efl_added), 61 efl_pack(parent, efl_added),
62 efl_gfx_size_hint_weight_set(efl_added, 1, 0), 62 efl_gfx_hint_weight_set(efl_added, 1, 0),
63 efl_ui_direction_set(efl_added, EFL_UI_DIR_HORIZONTAL)); 63 efl_ui_direction_set(efl_added, EFL_UI_DIR_HORIZONTAL));
64 64
65 _toolbar_new = _gui_toolbar_button_add(bar, "New", "document-new", _gui_new_clicked_cb); 65 _toolbar_new = _gui_toolbar_button_add(bar, "New", "document-new", _gui_new_clicked_cb);
@@ -67,7 +67,7 @@ _gui_toolbar_setup(Efl_Ui_Box *parent)
67 // spacer box 67 // spacer box
68 efl_add(EFL_UI_BOX_CLASS, parent, 68 efl_add(EFL_UI_BOX_CLASS, parent,
69 efl_pack(bar, efl_added), 69 efl_pack(bar, efl_added),
70 efl_gfx_size_hint_weight_set(efl_added, 10, 0)); 70 efl_gfx_hint_weight_set(efl_added, 10, 0));
71 _gui_toolbar_button_add(bar, "Quit", "application-exit", _gui_quit_cb); 71 _gui_toolbar_button_add(bar, "Quit", "application-exit", _gui_quit_cb);
72 72
73 _gui_toolbar_refresh(); 73 _gui_toolbar_refresh();
@@ -98,7 +98,7 @@ _gui_setup()
98 98
99 box = efl_add(EFL_UI_BOX_CLASS, win, 99 box = efl_add(EFL_UI_BOX_CLASS, win,
100 efl_content_set(win, efl_added), 100 efl_content_set(win, efl_added),
101 efl_gfx_size_hint_min_set(efl_added, EINA_SIZE2D(360, 240))); 101 efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(360, 240)));
102 102
103 _gui_toolbar_setup(box); 103 _gui_toolbar_setup(box);
104 104
diff --git a/reference/c/ui/src/focus_main.c b/reference/c/ui/src/focus_main.c
index 9eaf79c..676add7 100644
--- a/reference/c/ui/src/focus_main.c
+++ b/reference/c/ui/src/focus_main.c
@@ -40,7 +40,7 @@ _gui_setup()
40 40
41 box = efl_add(EFL_UI_BOX_CLASS, win, 41 box = efl_add(EFL_UI_BOX_CLASS, win,
42 efl_content_set(win, efl_added), 42 efl_content_set(win, efl_added),
43 efl_gfx_size_hint_min_set(efl_added, EINA_SIZE2D(360, 240))); 43 efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(360, 240)));
44 44
45 efl_add(EFL_UI_TEXT_CLASS, box, 45 efl_add(EFL_UI_TEXT_CLASS, box,
46 efl_text_set(efl_added, "Label"), 46 efl_text_set(efl_added, "Label"),
@@ -51,7 +51,7 @@ _gui_setup()
51 51
52 hbox = efl_add(EFL_UI_BOX_CLASS, box, 52 hbox = efl_add(EFL_UI_BOX_CLASS, box,
53 efl_ui_direction_set(efl_added, EFL_UI_DIR_HORIZONTAL), 53 efl_ui_direction_set(efl_added, EFL_UI_DIR_HORIZONTAL),
54 efl_gfx_size_hint_weight_set(efl_added, 1.0, 0.1), 54 efl_gfx_hint_weight_set(efl_added, 1.0, 0.1),
55 efl_pack(box, efl_added)); 55 efl_pack(box, efl_added));
56 56
57 about = efl_add(EFL_UI_BUTTON_CLASS, hbox, 57 about = efl_add(EFL_UI_BUTTON_CLASS, hbox,
@@ -70,7 +70,7 @@ _gui_setup()
70 efl_event_callback_add(efl_added, EFL_UI_EVENT_CLICKED, 70 efl_event_callback_add(efl_added, EFL_UI_EVENT_CLICKED,
71 _gui_quit_clicked_cb, efl_added)); 71 _gui_quit_clicked_cb, efl_added));
72 72
73 efl_ui_focus_util_focus(EFL_UI_FOCUS_UTIL_CLASS, about); 73 efl_ui_focus_util_focus(about);
74} 74}
75 75
76EAPI_MAIN void 76EAPI_MAIN void
diff --git a/reference/c/ui/src/ui_container.c b/reference/c/ui/src/ui_container.c
index 2115657..3775b5f 100644
--- a/reference/c/ui/src/ui_container.c
+++ b/reference/c/ui/src/ui_container.c
@@ -71,7 +71,7 @@ _ui_boxes_setup(Efl_Ui_Win *win)
71 efl_pack(box, efl_added)); 71 efl_pack(box, efl_added));
72 72
73 if (i == 2) 73 if (i == 2)
74 efl_gfx_size_hint_max_set(button, EINA_SIZE2D(100, 50)); 74 efl_gfx_hint_size_max_set(button, EINA_SIZE2D(100, 50));
75 } 75 }
76 76
77 return box; 77 return box;
@@ -96,7 +96,7 @@ _ui_panes_setup(Efl_Ui_Win *win)
96 96
97 efl_add(EFL_UI_BUTTON_CLASS, win, 97 efl_add(EFL_UI_BUTTON_CLASS, win,
98 efl_text_set(efl_added, "Quit"), 98 efl_text_set(efl_added, "Quit"),
99 efl_gfx_size_hint_max_set(efl_added, EINA_SIZE2D(150, 30)), 99 efl_gfx_hint_size_max_set(efl_added, EINA_SIZE2D(150, 30)),
100 efl_content_set(efl_part(horiz_split, "second"), efl_added), 100 efl_content_set(efl_part(horiz_split, "second"), efl_added),
101 efl_event_callback_add(efl_added, EFL_UI_EVENT_CLICKED, 101 efl_event_callback_add(efl_added, EFL_UI_EVENT_CLICKED,
102 _gui_quit_cb, efl_added)); 102 _gui_quit_cb, efl_added));
diff --git a/reference/c/ui/src/ui_sizing.c b/reference/c/ui/src/ui_sizing.c
index f2b8a76..80e50b5 100644
--- a/reference/c/ui/src/ui_sizing.c
+++ b/reference/c/ui/src/ui_sizing.c
@@ -45,12 +45,12 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
45 efl_add(EFL_UI_BUTTON_CLASS, win, 45 efl_add(EFL_UI_BUTTON_CLASS, win,
46 efl_text_set(efl_added, "Small"), 46 efl_text_set(efl_added, "Small"),
47 efl_pack_end(box, efl_added), 47 efl_pack_end(box, efl_added),
48 efl_gfx_size_hint_max_set(efl_added, EINA_SIZE2D(50, 50))); 48 efl_gfx_hint_size_max_set(efl_added, EINA_SIZE2D(50, 50)));
49 49
50 efl_add(EFL_UI_BUTTON_CLASS, win, 50 efl_add(EFL_UI_BUTTON_CLASS, win,
51 efl_text_set(efl_added, "Big Button"), 51 efl_text_set(efl_added, "Big Button"),
52 efl_pack_end(box, efl_added), 52 efl_pack_end(box, efl_added),
53 efl_gfx_size_hint_min_set(efl_added, EINA_SIZE2D(100, 100))); 53 efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(100, 100)));
54 54
55 efl_gfx_entity_size_set(win, EINA_SIZE2D(320, 320)); 55 efl_gfx_entity_size_set(win, EINA_SIZE2D(320, 320));
56} 56}
diff --git a/reference/c/ui/src/ui_translation.c b/reference/c/ui/src/ui_translation.c
index 02ba9a1..91cafc0 100644
--- a/reference/c/ui/src/ui_translation.c
+++ b/reference/c/ui/src/ui_translation.c
@@ -55,7 +55,7 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
55 efl_add(EFL_UI_BUTTON_CLASS, win, 55 efl_add(EFL_UI_BUTTON_CLASS, win,
56 efl_ui_l10n_text_set(efl_added, "Quit", _TEXT_DOMAIN), 56 efl_ui_l10n_text_set(efl_added, "Quit", _TEXT_DOMAIN),
57 efl_pack_end(box, efl_added), 57 efl_pack_end(box, efl_added),
58 efl_gfx_size_hint_min_set(efl_added, EINA_SIZE2D(100, 100)), 58 efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(100, 100)),
59 efl_event_callback_add(efl_added, EFL_UI_EVENT_CLICKED, 59 efl_event_callback_add(efl_added, EFL_UI_EVENT_CLICKED,
60 _gui_quit_cb, efl_added)); 60 _gui_quit_cb, efl_added));
61 61
diff --git a/tutorial/c/hello-gui/src/gui_main.c b/tutorial/c/hello-gui/src/gui_main.c
index bb38b3e..db03a6a 100644
--- a/tutorial/c/hello-gui/src/gui_main.c
+++ b/tutorial/c/hello-gui/src/gui_main.c
@@ -26,18 +26,18 @@ _gui_setup()
26 26
27 box = efl_add(EFL_UI_BOX_CLASS, win, 27 box = efl_add(EFL_UI_BOX_CLASS, win,
28 efl_content_set(win, efl_added), 28 efl_content_set(win, efl_added),
29 efl_gfx_size_hint_min_set(efl_added, EINA_SIZE2D(360, 240))); 29 efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(360, 240)));
30 30
31 efl_add(EFL_UI_TEXT_CLASS, box, 31 efl_add(EFL_UI_TEXT_CLASS, box,
32 efl_text_markup_set(efl_added, "Hello World.<br>This is an <b>Efl.Ui</b> application!"), 32 efl_text_markup_set(efl_added, "Hello World.<br>This is an <b>Efl.Ui</b> application!"),
33 efl_text_interactive_selection_allowed_set(efl_added, EINA_FALSE), 33 efl_text_interactive_selection_allowed_set(efl_added, EINA_FALSE),
34 efl_gfx_size_hint_weight_set(efl_added, 1.0, 0.9), 34 efl_gfx_hint_weight_set(efl_added, 1.0, 0.9),
35 efl_gfx_size_hint_align_set(efl_added, 0.5, 0.5), 35 efl_gfx_hint_align_set(efl_added, 0.5, 0.5),
36 efl_pack(box, efl_added)); 36 efl_pack(box, efl_added));
37 37
38 efl_add(EFL_UI_BUTTON_CLASS, box, 38 efl_add(EFL_UI_BUTTON_CLASS, box,
39 efl_text_set(efl_added, "Quit"), 39 efl_text_set(efl_added, "Quit"),
40 efl_gfx_size_hint_weight_set(efl_added, 1.0, 0.1), 40 efl_gfx_hint_weight_set(efl_added, 1.0, 0.1),
41 efl_pack(box, efl_added), 41 efl_pack(box, efl_added),
42 efl_event_callback_add(efl_added, EFL_UI_EVENT_CLICKED, 42 efl_event_callback_add(efl_added, EFL_UI_EVENT_CLICKED,
43 _gui_quit_cb, efl_added)); 43 _gui_quit_cb, efl_added));
diff --git a/tutorial/c/lifecycle_ui/src/lifecycle_main.c b/tutorial/c/lifecycle_ui/src/lifecycle_main.c
index f03aab0..72dff4c 100644
--- a/tutorial/c/lifecycle_ui/src/lifecycle_main.c
+++ b/tutorial/c/lifecycle_ui/src/lifecycle_main.c
@@ -24,7 +24,7 @@ _gui_setup()
24 efl_add(EFL_UI_BUTTON_CLASS, win, 24 efl_add(EFL_UI_BUTTON_CLASS, win,
25 efl_text_set(efl_added, "Quit"), 25 efl_text_set(efl_added, "Quit"),
26 efl_content_set(win, efl_added), 26 efl_content_set(win, efl_added),
27 efl_gfx_size_hint_min_set(efl_added, EINA_SIZE2D(360, 240)), 27 efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(360, 240)),
28 efl_event_callback_add(efl_added, EFL_UI_EVENT_CLICKED, 28 efl_event_callback_add(efl_added, EFL_UI_EVENT_CLICKED,
29 _gui_quit_clicked_cb, efl_added)); 29 _gui_quit_clicked_cb, efl_added));
30} 30}
diff --git a/unsorted/elementary/efl_ui_list_example_1.c b/unsorted/elementary/efl_ui_list_example_1.c
index 432c586..2afe6ab 100644
--- a/unsorted/elementary/efl_ui_list_example_1.c
+++ b/unsorted/elementary/efl_ui_list_example_1.c
@@ -115,15 +115,15 @@ elm_main(int argc, char **argv)
115 115
116 wbox = efl_add(EFL_UI_BOX_CLASS, win); 116 wbox = efl_add(EFL_UI_BOX_CLASS, win);
117 efl_ui_direction_set(wbox, EFL_UI_DIR_VERTICAL); 117 efl_ui_direction_set(wbox, EFL_UI_DIR_VERTICAL);
118 efl_gfx_size_hint_weight_set(wbox, EFL_GFX_SIZE_HINT_EXPAND, EFL_GFX_SIZE_HINT_EXPAND); 118 efl_gfx_hint_weight_set(wbox, EFL_GFX_SIZE_HINT_EXPAND, EFL_GFX_SIZE_HINT_EXPAND);
119 efl_gfx_size_hint_align_set(wbox, EFL_GFX_SIZE_HINT_FILL, EFL_GFX_SIZE_HINT_FILL); 119 efl_gfx_hint_align_set(wbox, EFL_GFX_SIZE_HINT_FILL, EFL_GFX_SIZE_HINT_FILL);
120 120
121 if ((argv[1] != NULL) && 121 if ((argv[1] != NULL) &&
122 (!strcmp(argv[1], "empty"))) 122 (!strcmp(argv[1], "empty")))
123 emptystyle = EINA_TRUE; 123 emptystyle = EINA_TRUE;
124 124
125 priv_d.list = list = efl_add(EFL_UI_LIST_CLASS, wbox); 125 priv_d.list = list = efl_add(EFL_UI_LIST_CLASS, wbox);
126 efl_gfx_size_hint_weight_set(list, EFL_GFX_SIZE_HINT_EXPAND, 0.9); 126 efl_gfx_hint_weight_set(list, EFL_GFX_SIZE_HINT_EXPAND, 0.9);
127 127
128 efl_event_callback_add(list, EFL_UI_EVENT_SELECTED, _list_selected, NULL); 128 efl_event_callback_add(list, EFL_UI_EVENT_SELECTED, _list_selected, NULL);
129 efl_event_callback_add(list, EFL_UI_EVENT_UNSELECTED, _list_unselected, NULL); 129 efl_event_callback_add(list, EFL_UI_EVENT_UNSELECTED, _list_unselected, NULL);
@@ -145,7 +145,7 @@ elm_main(int argc, char **argv)
145 efl_ui_direction_set(ibox, EFL_UI_DIR_HORIZONTAL); 145 efl_ui_direction_set(ibox, EFL_UI_DIR_HORIZONTAL);
146 146
147 txt = efl_add(EFL_UI_TEXT_CLASS, ibox); 147 txt = efl_add(EFL_UI_TEXT_CLASS, ibox);
148 efl_gfx_size_hint_weight_set(txt, 0.95, EFL_GFX_SIZE_HINT_EXPAND); 148 efl_gfx_hint_weight_set(txt, 0.95, EFL_GFX_SIZE_HINT_EXPAND);
149 efl_text_halign_set(txt, 0.2); 149 efl_text_halign_set(txt, 0.2);
150 efl_text_interactive_selection_allowed_set(txt, EINA_FALSE); 150 efl_text_interactive_selection_allowed_set(txt, EINA_FALSE);
151 snprintf(buf, sizeof(buf), "empty style item [%d]", i); 151 snprintf(buf, sizeof(buf), "empty style item [%d]", i);
@@ -153,7 +153,7 @@ elm_main(int argc, char **argv)
153 efl_pack_end(ibox, txt); 153 efl_pack_end(ibox, txt);
154 154
155 check = efl_add(EFL_UI_CHECK_CLASS, ibox); 155 check = efl_add(EFL_UI_CHECK_CLASS, ibox);
156 efl_gfx_size_hint_weight_set(check, 0.05, EFL_GFX_SIZE_HINT_EXPAND); 156 efl_gfx_hint_weight_set(check, 0.05, EFL_GFX_SIZE_HINT_EXPAND);
157 efl_pack_end(ibox, check); 157 efl_pack_end(ibox, check);
158 158
159 if (i % 2) 159 if (i % 2)
@@ -223,7 +223,7 @@ elm_main(int argc, char **argv)
223 223
224 /*select mode */ 224 /*select mode */
225 txt = efl_add(EFL_UI_TEXT_CLASS, wbox); 225 txt = efl_add(EFL_UI_TEXT_CLASS, wbox);
226 efl_gfx_size_hint_weight_set(txt, EFL_GFX_SIZE_HINT_EXPAND, 0.01); 226 efl_gfx_hint_weight_set(txt, EFL_GFX_SIZE_HINT_EXPAND, 0.01);
227 efl_text_halign_set(txt, 0.02); 227 efl_text_halign_set(txt, 0.02);
228 efl_text_interactive_selection_allowed_set(txt, EINA_FALSE); 228 efl_text_interactive_selection_allowed_set(txt, EINA_FALSE);
229 efl_text_set(txt, "Select Mode"); 229 efl_text_set(txt, "Select Mode");
@@ -231,7 +231,7 @@ elm_main(int argc, char **argv)
231 231
232 bbox = efl_add(EFL_UI_BOX_CLASS, wbox); 232 bbox = efl_add(EFL_UI_BOX_CLASS, wbox);
233 efl_ui_direction_set(bbox, EFL_UI_DIR_HORIZONTAL); 233 efl_ui_direction_set(bbox, EFL_UI_DIR_HORIZONTAL);
234 efl_gfx_size_hint_weight_set(bbox, EFL_GFX_SIZE_HINT_EXPAND, 0.05); 234 efl_gfx_hint_weight_set(bbox, EFL_GFX_SIZE_HINT_EXPAND, 0.05);
235 235
236 select_radio = radio = efl_add(EFL_UI_RADIO_CLASS, wbox); 236 select_radio = radio = efl_add(EFL_UI_RADIO_CLASS, wbox);
237 efl_text_set(radio, "SINGLE"); 237 efl_text_set(radio, "SINGLE");
@@ -260,7 +260,7 @@ elm_main(int argc, char **argv)
260 260
261 /* scroll mode */ 261 /* scroll mode */
262 txt = efl_add(EFL_UI_TEXT_CLASS, wbox); 262 txt = efl_add(EFL_UI_TEXT_CLASS, wbox);
263 efl_gfx_size_hint_weight_set(txt, EFL_GFX_SIZE_HINT_EXPAND, 0.01); 263 efl_gfx_hint_weight_set(txt, EFL_GFX_SIZE_HINT_EXPAND, 0.01);
264 efl_text_interactive_selection_allowed_set(txt, EINA_FALSE); 264 efl_text_interactive_selection_allowed_set(txt, EINA_FALSE);
265 efl_text_halign_set(txt, 0.02); 265 efl_text_halign_set(txt, 0.02);
266 efl_text_set(txt, "Item Scroll"); 266 efl_text_set(txt, "Item Scroll");
@@ -268,27 +268,27 @@ elm_main(int argc, char **argv)
268 268
269 priv_d.slider = slider = efl_add(EFL_UI_SLIDER_CLASS, wbox); 269 priv_d.slider = slider = efl_add(EFL_UI_SLIDER_CLASS, wbox);
270 efl_ui_direction_set(slider, EFL_UI_DIR_HORIZONTAL); 270 efl_ui_direction_set(slider, EFL_UI_DIR_HORIZONTAL);
271 efl_gfx_size_hint_weight_set(slider, 0.0, 0.05); 271 efl_gfx_hint_weight_set(slider, 0.0, 0.05);
272 efl_gfx_size_hint_align_set(slider, 0.5, 0.5); 272 efl_gfx_hint_align_set(slider, 0.5, 0.5);
273 efl_gfx_size_hint_min_set(slider, EINA_SIZE2D(380, 20)); 273 efl_gfx_hint_size_min_set(slider, EINA_SIZE2D(380, 20));
274 efl_ui_range_min_max_set(slider, 0.0, 1.0); 274 efl_ui_range_min_max_set(slider, 0.0, 1.0);
275 efl_pack_end(wbox, slider); 275 efl_pack_end(wbox, slider);
276 276
277 bbox = efl_add(EFL_UI_BOX_CLASS, wbox); 277 bbox = efl_add(EFL_UI_BOX_CLASS, wbox);
278 efl_ui_direction_set(bbox, EFL_UI_DIR_HORIZONTAL); 278 efl_ui_direction_set(bbox, EFL_UI_DIR_HORIZONTAL);
279 efl_gfx_size_hint_weight_set(bbox, EFL_GFX_SIZE_HINT_EXPAND, 0.05); 279 efl_gfx_hint_weight_set(bbox, EFL_GFX_SIZE_HINT_EXPAND, 0.05);
280 280
281 rbox = efl_add(EFL_UI_BOX_CLASS, bbox); 281 rbox = efl_add(EFL_UI_BOX_CLASS, bbox);
282 efl_ui_direction_set(rbox, EFL_UI_DIR_VERTICAL); 282 efl_ui_direction_set(rbox, EFL_UI_DIR_VERTICAL);
283 283
284 anim_radio = radio = efl_add(EFL_UI_RADIO_CLASS, rbox); 284 anim_radio = radio = efl_add(EFL_UI_RADIO_CLASS, rbox);
285 efl_gfx_size_hint_align_set(radio, 0.5, 0.5); 285 efl_gfx_hint_align_set(radio, 0.5, 0.5);
286 efl_text_set(radio, "ANIMATION OFF"); 286 efl_text_set(radio, "ANIMATION OFF");
287 efl_ui_radio_state_value_set(radio, 0); 287 efl_ui_radio_state_value_set(radio, 0);
288 efl_event_callback_add(radio, EFL_UI_RADIO_EVENT_CHANGED, _anim_radio_changed, NULL); 288 efl_event_callback_add(radio, EFL_UI_RADIO_EVENT_CHANGED, _anim_radio_changed, NULL);
289 efl_pack_end(rbox, radio); 289 efl_pack_end(rbox, radio);
290 radio = efl_add(EFL_UI_RADIO_CLASS, rbox); 290 radio = efl_add(EFL_UI_RADIO_CLASS, rbox);
291 efl_gfx_size_hint_align_set(radio, 0.5, 0.5); 291 efl_gfx_hint_align_set(radio, 0.5, 0.5);
292 efl_text_set(radio, "ANIMATION ON"); 292 efl_text_set(radio, "ANIMATION ON");
293 efl_ui_radio_state_value_set(radio, 1); 293 efl_ui_radio_state_value_set(radio, 1);
294 efl_ui_radio_group_add(radio, anim_radio); 294 efl_ui_radio_group_add(radio, anim_radio);
@@ -301,15 +301,15 @@ elm_main(int argc, char **argv)
301 301
302 scrl_btn = efl_add(EFL_UI_BUTTON_CLASS, rbox); 302 scrl_btn = efl_add(EFL_UI_BUTTON_CLASS, rbox);
303 efl_text_set(scrl_btn, "Scroll Item"); 303 efl_text_set(scrl_btn, "Scroll Item");
304 efl_gfx_size_hint_align_set(scrl_btn, 0.5, 0.5); 304 efl_gfx_hint_align_set(scrl_btn, 0.5, 0.5);
305 efl_gfx_size_hint_min_set(scrl_btn, EINA_SIZE2D(200, 25)); 305 efl_gfx_hint_size_min_set(scrl_btn, EINA_SIZE2D(200, 25));
306 efl_event_callback_add(scrl_btn, EFL_UI_EVENT_CLICKED, _scrl_btn_clicked, NULL); 306 efl_event_callback_add(scrl_btn, EFL_UI_EVENT_CLICKED, _scrl_btn_clicked, NULL);
307 efl_pack_end(rbox, scrl_btn); 307 efl_pack_end(rbox, scrl_btn);
308 308
309 scrl_btn = efl_add(EFL_UI_BUTTON_CLASS, rbox); 309 scrl_btn = efl_add(EFL_UI_BUTTON_CLASS, rbox);
310 efl_text_set(scrl_btn, "Scroll Item Align"); 310 efl_text_set(scrl_btn, "Scroll Item Align");
311 efl_gfx_size_hint_align_set(scrl_btn, 0.5, 0.5); 311 efl_gfx_hint_align_set(scrl_btn, 0.5, 0.5);
312 efl_gfx_size_hint_min_set(scrl_btn, EINA_SIZE2D(200, 25)); 312 efl_gfx_hint_size_min_set(scrl_btn, EINA_SIZE2D(200, 25));
313 efl_event_callback_add(scrl_btn, EFL_UI_EVENT_CLICKED, _scrl_align_btn_clicked, NULL); 313 efl_event_callback_add(scrl_btn, EFL_UI_EVENT_CLICKED, _scrl_align_btn_clicked, NULL);
314 efl_pack_end(rbox, scrl_btn); 314 efl_pack_end(rbox, scrl_btn);
315 315