summaryrefslogtreecommitdiff
path: root/src/bin/elementary
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/elementary')
-rw-r--r--src/bin/elementary/Makefile.am1
-rw-r--r--src/bin/elementary/meson.build1
-rw-r--r--src/bin/elementary/test.c3
-rw-r--r--src/bin/elementary/test_bg.c22
-rw-r--r--src/bin/elementary/test_box.c4
-rw-r--r--src/bin/elementary/test_calendar.c1
-rw-r--r--src/bin/elementary/test_code.c43
-rw-r--r--src/bin/elementary/test_ctxpopup.c3
-rw-r--r--src/bin/elementary/test_efl_anim_event_anim.c91
-rw-r--r--src/bin/elementary/test_efl_gfx_mapping.c3
-rw-r--r--src/bin/elementary/test_efl_ui_text.c15
-rw-r--r--src/bin/elementary/test_entry.c4
-rw-r--r--src/bin/elementary/test_evas_map.c4
-rw-r--r--src/bin/elementary/test_evas_mask.c6
-rw-r--r--src/bin/elementary/test_evas_snapshot.c4
-rw-r--r--src/bin/elementary/test_events.c1
-rw-r--r--src/bin/elementary/test_gfx_filters.c7
-rw-r--r--src/bin/elementary/test_glview.c2
-rw-r--r--src/bin/elementary/test_image.c1
-rw-r--r--src/bin/elementary/test_nstate.c1
-rw-r--r--src/bin/elementary/test_part_bg.c7
-rw-r--r--src/bin/elementary/test_part_shadow.c3
-rw-r--r--src/bin/elementary/test_photocam.c8
-rw-r--r--src/bin/elementary/test_systray.c2
-rw-r--r--src/bin/elementary/test_ui_box.c1
-rw-r--r--src/bin/elementary/test_ui_button.c7
-rw-r--r--src/bin/elementary/test_ui_clock.c3
-rw-r--r--src/bin/elementary/test_ui_datepicker.c3
-rw-r--r--src/bin/elementary/test_ui_pager.c15
-rw-r--r--src/bin/elementary/test_ui_pager_scroll.c15
-rw-r--r--src/bin/elementary/test_ui_panel.c7
-rw-r--r--src/bin/elementary/test_ui_panes.c3
-rw-r--r--src/bin/elementary/test_ui_popup.c19
-rw-r--r--src/bin/elementary/test_ui_progressbar.c6
-rw-r--r--src/bin/elementary/test_ui_relative_layout.c3
-rw-r--r--src/bin/elementary/test_ui_scroller.c3
-rw-r--r--src/bin/elementary/test_ui_slider.c3
-rw-r--r--src/bin/elementary/test_ui_slider_interval.c3
-rw-r--r--src/bin/elementary/test_ui_spin.c3
-rw-r--r--src/bin/elementary/test_ui_spin_button.c3
-rw-r--r--src/bin/elementary/test_ui_stack.c1
-rw-r--r--src/bin/elementary/test_ui_tab_pager.c9
-rw-r--r--src/bin/elementary/test_ui_table.c27
-rw-r--r--src/bin/elementary/test_ui_table_static.c1
-rw-r--r--src/bin/elementary/test_ui_tags.c3
-rw-r--r--src/bin/elementary/test_ui_textpath.c1
-rw-r--r--src/bin/elementary/test_ui_timepicker.c3
-rw-r--r--src/bin/elementary/test_win_dialog.c7
-rw-r--r--src/bin/elementary/test_win_indicator.c11
-rw-r--r--src/bin/elementary/test_win_inline.c1
-rw-r--r--src/bin/elementary/test_win_plug.c2
-rw-r--r--src/bin/elementary/test_win_stack.c5
-rw-r--r--src/bin/elementary/test_win_state.c18
53 files changed, 198 insertions, 225 deletions
diff --git a/src/bin/elementary/Makefile.am b/src/bin/elementary/Makefile.am
index b63861d..8100fb4 100644
--- a/src/bin/elementary/Makefile.am
+++ b/src/bin/elementary/Makefile.am
@@ -38,7 +38,6 @@ test_efl_anim_scale.c \
38test_efl_anim_translate.c \ 38test_efl_anim_translate.c \
39test_efl_anim_group_parallel.c \ 39test_efl_anim_group_parallel.c \
40test_efl_anim_group_sequential.c \ 40test_efl_anim_group_sequential.c \
41test_efl_anim_event_anim.c \
42test_efl_anim_pause.c \ 41test_efl_anim_pause.c \
43test_efl_anim_repeat.c \ 42test_efl_anim_repeat.c \
44test_efl_anim_start_delay.c \ 43test_efl_anim_start_delay.c \
diff --git a/src/bin/elementary/meson.build b/src/bin/elementary/meson.build
index a3a570a..1612e0b 100644
--- a/src/bin/elementary/meson.build
+++ b/src/bin/elementary/meson.build
@@ -35,7 +35,6 @@ elementary_test_src = [
35 'test_efl_anim_translate.c', 35 'test_efl_anim_translate.c',
36 'test_efl_anim_group_parallel.c', 36 'test_efl_anim_group_parallel.c',
37 'test_efl_anim_group_sequential.c', 37 'test_efl_anim_group_sequential.c',
38 'test_efl_anim_event_anim.c',
39 'test_efl_anim_pause.c', 38 'test_efl_anim_pause.c',
40 'test_efl_anim_repeat.c', 39 'test_efl_anim_repeat.c',
41 'test_efl_anim_start_delay.c', 40 'test_efl_anim_start_delay.c',
diff --git a/src/bin/elementary/test.c b/src/bin/elementary/test.c
index fa2bb74..91fe009 100644
--- a/src/bin/elementary/test.c
+++ b/src/bin/elementary/test.c
@@ -3,6 +3,7 @@
3#endif 3#endif
4 4
5#include <string.h> 5#include <string.h>
6#include <Efl_Ui.h>
6#include <Elementary.h> 7#include <Elementary.h>
7#include "test.h" 8#include "test.h"
8#include "test_explode.h" 9#include "test_explode.h"
@@ -365,7 +366,6 @@ void test_efl_anim_translate(void *data, Evas_Object *obj, void *event_info);
365void test_efl_anim_translate_absolute(void *data, Evas_Object *obj, void *event_info); 366void test_efl_anim_translate_absolute(void *data, Evas_Object *obj, void *event_info);
366void test_efl_anim_group_parallel(void *data, Evas_Object *obj, void *event_info); 367void test_efl_anim_group_parallel(void *data, Evas_Object *obj, void *event_info);
367void test_efl_anim_group_sequential(void *data, Evas_Object *obj, void *event_info); 368void test_efl_anim_group_sequential(void *data, Evas_Object *obj, void *event_info);
368void test_efl_anim_event_anim(void *data, Evas_Object *obj, void *event_info);
369void test_efl_anim_pause(void *data, Evas_Object *obj, void *event_info); 369void test_efl_anim_pause(void *data, Evas_Object *obj, void *event_info);
370void test_efl_anim_repeat(void *data, Evas_Object *obj, void *event_info); 370void test_efl_anim_repeat(void *data, Evas_Object *obj, void *event_info);
371void test_efl_anim_start_delay(void *data, Evas_Object *obj, void *event_info); 371void test_efl_anim_start_delay(void *data, Evas_Object *obj, void *event_info);
@@ -923,7 +923,6 @@ add_tests:
923 ADD_TEST_EO(NULL, "Effects", "Efl.Animation.Translate Absolute", test_efl_anim_translate_absolute); 923 ADD_TEST_EO(NULL, "Effects", "Efl.Animation.Translate Absolute", test_efl_anim_translate_absolute);
924 ADD_TEST_EO(NULL, "Effects", "Efl.Animation.Group Parallel", test_efl_anim_group_parallel); 924 ADD_TEST_EO(NULL, "Effects", "Efl.Animation.Group Parallel", test_efl_anim_group_parallel);
925 ADD_TEST_EO(NULL, "Effects", "Efl.Animation.Group Sequential", test_efl_anim_group_sequential); 925 ADD_TEST_EO(NULL, "Effects", "Efl.Animation.Group Sequential", test_efl_anim_group_sequential);
926 ADD_TEST_EO(NULL, "Effects", "Efl.Animation.Event Animation", test_efl_anim_event_anim);
927 ADD_TEST_EO(NULL, "Effects", "Efl.Animation.Pause", test_efl_anim_pause); 926 ADD_TEST_EO(NULL, "Effects", "Efl.Animation.Pause", test_efl_anim_pause);
928 ADD_TEST_EO(NULL, "Effects", "Efl.Animation.Repeat", test_efl_anim_repeat); 927 ADD_TEST_EO(NULL, "Effects", "Efl.Animation.Repeat", test_efl_anim_repeat);
929 ADD_TEST_EO(NULL, "Effects", "Efl.Animation.Start Delay", test_efl_anim_start_delay); 928 ADD_TEST_EO(NULL, "Effects", "Efl.Animation.Start Delay", test_efl_anim_start_delay);
diff --git a/src/bin/elementary/test_bg.c b/src/bin/elementary/test_bg.c
index 338084b..68e2ba9 100644
--- a/src/bin/elementary/test_bg.c
+++ b/src/bin/elementary/test_bg.c
@@ -2,8 +2,9 @@
2# include "elementary_config.h" 2# include "elementary_config.h"
3#endif 3#endif
4 4
5#include <Efl_Ui.h>
5#include <Elementary.h> 6#include <Elementary.h>
6#include "elm_colorselector.eo.h" 7#include "elm_colorselector_eo.h"
7 8
8static void 9static void
9_cb_size_radio_changed(void *data, Evas_Object *obj, void *event EINA_UNUSED) 10_cb_size_radio_changed(void *data, Evas_Object *obj, void *event EINA_UNUSED)
@@ -292,15 +293,15 @@ _file_cb(void *data, const Efl_Event *ev)
292 const char *f, *k; 293 const char *f, *k;
293 294
294 // File API 295 // File API
295 efl_file_get(efl_part(win, "background"), &f, &k); 296 efl_file_simple_get(efl_part(win, "background"), &f, &k);
296 if (f) 297 if (f)
297 { 298 {
298 efl_file_set(efl_part(win, "background"), NULL, NULL); 299 efl_file_simple_load(efl_part(win, "background"), NULL, NULL);
299 } 300 }
300 else 301 else
301 { 302 {
302 efl_file_get(ev->object, &f, &k); 303 efl_file_simple_get(ev->object, &f, &k);
303 efl_file_set(efl_part(win, "background"), f, k); 304 efl_file_simple_load(efl_part(win, "background"), f, k);
304 } 305 }
305} 306}
306 307
@@ -315,10 +316,11 @@ _image_cb(void *data, const Efl_Event *ev)
315 efl_content_set(efl_part(win, "background"), NULL); 316 efl_content_set(efl_part(win, "background"), NULL);
316 else 317 else
317 { 318 {
318 efl_file_get(ev->object, &f, &k); 319 efl_file_simple_get(ev->object, &f, &k);
319 o = efl_add(EFL_UI_IMAGE_CLASS, win, 320 o = efl_add(EFL_UI_IMAGE_CLASS, win,
320 efl_gfx_image_scale_type_set(efl_added, EFL_GFX_IMAGE_SCALE_TYPE_FIT_OUTSIDE), 321 efl_gfx_image_scale_type_set(efl_added, EFL_GFX_IMAGE_SCALE_TYPE_FIT_OUTSIDE),
321 efl_file_set(efl_added, f, k) 322 efl_file_set(efl_added, f),
323 efl_file_key_set(efl_added, k)
322 ); 324 );
323 efl_content_set(efl_part(win, "background"), o); 325 efl_content_set(efl_part(win, "background"), o);
324 } 326 }
@@ -353,7 +355,7 @@ test_bg_window(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event
353 355
354 snprintf(buf, sizeof(buf), "%s/images/plant_01.jpg", elm_app_data_dir_get()); 356 snprintf(buf, sizeof(buf), "%s/images/plant_01.jpg", elm_app_data_dir_get());
355 efl_add(EFL_UI_IMAGE_CLASS, win, 357 efl_add(EFL_UI_IMAGE_CLASS, win,
356 efl_file_set(efl_added, buf, NULL), 358 efl_file_set(efl_added, buf),
357 efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(64, 64)), 359 efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(64, 64)),
358 efl_gfx_hint_align_set(efl_added, 0.5, 0.5), 360 efl_gfx_hint_align_set(efl_added, 0.5, 0.5),
359 efl_event_callback_add(efl_added, EFL_UI_EVENT_CLICKED, _file_cb, win), 361 efl_event_callback_add(efl_added, EFL_UI_EVENT_CLICKED, _file_cb, win),
@@ -361,7 +363,7 @@ test_bg_window(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event
361 363
362 snprintf(buf, sizeof(buf), "%s/images/sky_04.jpg", elm_app_data_dir_get()); 364 snprintf(buf, sizeof(buf), "%s/images/sky_04.jpg", elm_app_data_dir_get());
363 efl_add(EFL_UI_IMAGE_CLASS, win, 365 efl_add(EFL_UI_IMAGE_CLASS, win,
364 efl_file_set(efl_added, buf, NULL), 366 efl_file_set(efl_added, buf),
365 efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(64, 64)), 367 efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(64, 64)),
366 efl_gfx_hint_align_set(efl_added, 0.5, 0.5), 368 efl_gfx_hint_align_set(efl_added, 0.5, 0.5),
367 efl_event_callback_add(efl_added, EFL_UI_EVENT_CLICKED, _image_cb, win), 369 efl_event_callback_add(efl_added, EFL_UI_EVENT_CLICKED, _image_cb, win),
@@ -420,7 +422,7 @@ test_bg_scale_type(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *e
420 snprintf(buf, sizeof(buf), "%s/images/plant_01.jpg", elm_app_data_dir_get()); 422 snprintf(buf, sizeof(buf), "%s/images/plant_01.jpg", elm_app_data_dir_get());
421 423
422 o_bg = efl_add(EFL_UI_BG_CLASS, box, 424 o_bg = efl_add(EFL_UI_BG_CLASS, box,
423 efl_file_set(efl_added, buf, NULL), 425 efl_file_set(efl_added, buf),
424 efl_gfx_hint_weight_set(efl_added, EFL_GFX_HINT_EXPAND, EFL_GFX_HINT_EXPAND), 426 efl_gfx_hint_weight_set(efl_added, EFL_GFX_HINT_EXPAND, EFL_GFX_HINT_EXPAND),
425 efl_gfx_hint_fill_set(efl_added, EINA_TRUE, EINA_TRUE), 427 efl_gfx_hint_fill_set(efl_added, EINA_TRUE, EINA_TRUE),
426 efl_pack(box, efl_added)); 428 efl_pack(box, efl_added));
diff --git a/src/bin/elementary/test_box.c b/src/bin/elementary/test_box.c
index 31ccc9c..2d0e6af 100644
--- a/src/bin/elementary/test_box.c
+++ b/src/bin/elementary/test_box.c
@@ -2,6 +2,7 @@
2#ifdef HAVE_CONFIG_H 2#ifdef HAVE_CONFIG_H
3# include "elementary_config.h" 3# include "elementary_config.h"
4#endif 4#endif
5#include <Efl_Ui.h>
5#include <Elementary.h> 6#include <Elementary.h>
6 7
7#define ICON_MAX 24 8#define ICON_MAX 24
@@ -916,7 +917,8 @@ test_box_stack(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
916 snprintf(buf, sizeof(buf), "%s/images/logo.png", elm_app_data_dir_get()); 917 snprintf(buf, sizeof(buf), "%s/images/logo.png", elm_app_data_dir_get());
917 o = efl_add(EFL_UI_IMAGE_CLASS, win, 918 o = efl_add(EFL_UI_IMAGE_CLASS, win,
918 efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(64, 64)), 919 efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(64, 64)),
919 efl_file_set(efl_added, buf, NULL)); 920 efl_file_set(efl_added, buf),
921 efl_file_load(efl_added));
920 efl_pack(bx, o); 922 efl_pack(bx, o);
921 923
922 efl_gfx_entity_size_set(win, EINA_SIZE2D(300, 300)); 924 efl_gfx_entity_size_set(win, EINA_SIZE2D(300, 300));
diff --git a/src/bin/elementary/test_calendar.c b/src/bin/elementary/test_calendar.c
index ba37407..9a5de37 100644
--- a/src/bin/elementary/test_calendar.c
+++ b/src/bin/elementary/test_calendar.c
@@ -1,6 +1,7 @@
1#ifdef HAVE_CONFIG_H 1#ifdef HAVE_CONFIG_H
2# include "elementary_config.h" 2# include "elementary_config.h"
3#endif 3#endif
4#include <Efl_Ui.h>
4#include <Elementary.h> 5#include <Elementary.h>
5 6
6struct _api_data 7struct _api_data
diff --git a/src/bin/elementary/test_code.c b/src/bin/elementary/test_code.c
index bb010ce..076ef6d 100644
--- a/src/bin/elementary/test_code.c
+++ b/src/bin/elementary/test_code.c
@@ -1,6 +1,7 @@
1#ifdef HAVE_CONFIG_H 1#ifdef HAVE_CONFIG_H
2# include "elementary_config.h" 2# include "elementary_config.h"
3#endif 3#endif
4#include <Efl_Ui.h>
4#include <Elementary.h> 5#include <Elementary.h>
5 6
6static Evas_Object *_test_code_win_create(const char *id, const char *name) 7static Evas_Object *_test_code_win_create(const char *id, const char *name)
@@ -69,7 +70,7 @@ _elm_code_test_welcome_setup(Evas_Object *parent)
69 evas_object_show(widget); 70 evas_object_show(widget);
70 71
71 efl_event_callback_add(widget, &ELM_CODE_EVENT_LINE_LOAD_DONE, _elm_code_test_line_done_cb, NULL); 72 efl_event_callback_add(widget, &ELM_CODE_EVENT_LINE_LOAD_DONE, _elm_code_test_line_done_cb, NULL);
72 efl_event_callback_add(widget, ELM_OBJ_CODE_WIDGET_EVENT_LINE_CLICKED, _elm_code_test_line_clicked_cb, code); 73 efl_event_callback_add(widget, EFL_UI_CODE_WIDGET_EVENT_LINE_CLICKED, _elm_code_test_line_clicked_cb, code);
73 74
74 _append_line(code->file, "❤ Hello World, Elm Code! ❤"); 75 _append_line(code->file, "❤ Hello World, Elm Code! ❤");
75 _append_line(code->file, "*** Currently experimental ***"); 76 _append_line(code->file, "*** Currently experimental ***");
@@ -103,10 +104,10 @@ _elm_code_test_editor_setup(Evas_Object *parent, Eina_Bool log)
103 evas_object_size_hint_align_set(widget, EVAS_HINT_FILL, EVAS_HINT_FILL); 104 evas_object_size_hint_align_set(widget, EVAS_HINT_FILL, EVAS_HINT_FILL);
104 evas_object_show(widget); 105 evas_object_show(widget);
105 106
106 elm_obj_code_widget_font_set(widget, NULL, 14); 107 efl_ui_code_widget_font_set(widget, NULL, 14);
107 elm_obj_code_widget_editable_set(widget, EINA_TRUE); 108 efl_ui_code_widget_editable_set(widget, EINA_TRUE);
108 elm_obj_code_widget_show_whitespace_set(widget, EINA_TRUE); 109 efl_ui_code_widget_show_whitespace_set(widget, EINA_TRUE);
109 elm_obj_code_widget_line_numbers_set(widget, EINA_TRUE); 110 efl_ui_code_widget_line_numbers_set(widget, EINA_TRUE);
110 111
111 if (!log) 112 if (!log)
112 { 113 {
@@ -135,11 +136,11 @@ _elm_code_test_syntax_setup(Evas_Object *parent)
135 evas_object_size_hint_align_set(widget, EVAS_HINT_FILL, EVAS_HINT_FILL); 136 evas_object_size_hint_align_set(widget, EVAS_HINT_FILL, EVAS_HINT_FILL);
136 evas_object_show(widget); 137 evas_object_show(widget);
137 138
138 elm_obj_code_widget_editable_set(widget, EINA_TRUE); 139 efl_ui_code_widget_editable_set(widget, EINA_TRUE);
139 elm_obj_code_widget_syntax_enabled_set(widget, EINA_TRUE); 140 efl_ui_code_widget_syntax_enabled_set(widget, EINA_TRUE);
140 elm_obj_code_widget_code_get(widget)->file->mime = "text/x-csrc"; 141 efl_ui_code_widget_code_get(widget)->file->mime = "text/x-csrc";
141 elm_obj_code_widget_show_whitespace_set(widget, EINA_TRUE); 142 efl_ui_code_widget_show_whitespace_set(widget, EINA_TRUE);
142 elm_obj_code_widget_line_numbers_set(widget, EINA_TRUE); 143 efl_ui_code_widget_line_numbers_set(widget, EINA_TRUE);
143 144
144 _append_line(code->file, "#include <stdio.h>"); 145 _append_line(code->file, "#include <stdio.h>");
145 _append_line(code->file, "int main(int argc, char **argv)"); 146 _append_line(code->file, "int main(int argc, char **argv)");
@@ -163,13 +164,13 @@ _elm_code_test_syntax_tabbed_setup(Evas_Object *parent)
163 164
164 code = elm_code_create(); 165 code = elm_code_create();
165 code->config.indent_style_efl = EINA_FALSE; 166 code->config.indent_style_efl = EINA_FALSE;
166 widget = efl_add(ELM_CODE_WIDGET_CLASS, parent, elm_obj_code_widget_code_set(efl_added, code)); 167 widget = efl_add(ELM_CODE_WIDGET_CLASS, parent, efl_ui_code_widget_code_set(efl_added, code));
167 elm_obj_code_widget_editable_set(widget, EINA_TRUE); 168 efl_ui_code_widget_editable_set(widget, EINA_TRUE);
168 elm_obj_code_widget_syntax_enabled_set(widget, EINA_TRUE); 169 efl_ui_code_widget_syntax_enabled_set(widget, EINA_TRUE);
169 elm_obj_code_widget_code_get(widget)->file->mime = "text/x-csrc"; 170 efl_ui_code_widget_code_get(widget)->file->mime = "text/x-csrc";
170 elm_obj_code_widget_show_whitespace_set(widget, EINA_TRUE); 171 efl_ui_code_widget_show_whitespace_set(widget, EINA_TRUE);
171 elm_obj_code_widget_line_numbers_set(widget, EINA_TRUE); 172 efl_ui_code_widget_line_numbers_set(widget, EINA_TRUE);
172 elm_obj_code_widget_tab_inserts_spaces_set(widget, EINA_FALSE); 173 efl_ui_code_widget_tab_inserts_spaces_set(widget, EINA_FALSE);
173 174
174 _append_line(code->file, "#include <stdio.h>"); 175 _append_line(code->file, "#include <stdio.h>");
175 _append_line(code->file, "int main(int argc, char **argv)"); 176 _append_line(code->file, "int main(int argc, char **argv)");
@@ -199,8 +200,8 @@ _elm_code_test_mirror_setup(Elm_Code *code, char *font_name, Evas_Object *parent
199 evas_object_size_hint_align_set(widget, EVAS_HINT_FILL, EVAS_HINT_FILL); 200 evas_object_size_hint_align_set(widget, EVAS_HINT_FILL, EVAS_HINT_FILL);
200 evas_object_show(widget); 201 evas_object_show(widget);
201 202
202 elm_obj_code_widget_font_set(widget, font_name, 11); 203 efl_ui_code_widget_font_set(widget, font_name, 11);
203 elm_obj_code_widget_line_numbers_set(widget, EINA_TRUE); 204 efl_ui_code_widget_line_numbers_set(widget, EINA_TRUE);
204 205
205 return widget; 206 return widget;
206} 207}
@@ -326,7 +327,7 @@ test_code_log(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_
326 327
327 o = elm_button_add(screen); 328 o = elm_button_add(screen);
328 elm_object_text_set(o, "log"); 329 elm_object_text_set(o, "log");
329 evas_object_smart_callback_add(o, "clicked", _elm_code_test_log_clicked, elm_obj_code_widget_code_get(code)); 330 evas_object_smart_callback_add(o, "clicked", _elm_code_test_log_clicked, efl_ui_code_widget_code_get(code));
330 elm_box_pack_end(screen, o); 331 elm_box_pack_end(screen, o);
331 evas_object_show(o); 332 evas_object_show(o);
332 333
@@ -348,7 +349,7 @@ test_code_mirror(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *eve
348 evas_object_size_hint_weight_set(screen, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 349 evas_object_size_hint_weight_set(screen, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
349 350
350 widget = _elm_code_test_editor_setup(screen, EINA_FALSE); 351 widget = _elm_code_test_editor_setup(screen, EINA_FALSE);
351 code = elm_obj_code_widget_code_get(widget); 352 code = efl_ui_code_widget_code_get(widget);
352 elm_box_pack_end(screen, widget); 353 elm_box_pack_end(screen, widget);
353 354
354 elm_box_pack_end(screen, _elm_code_test_mirror_setup(code, "Mono:style=Oblique", screen)); 355 elm_box_pack_end(screen, _elm_code_test_mirror_setup(code, "Mono:style=Oblique", screen));
diff --git a/src/bin/elementary/test_ctxpopup.c b/src/bin/elementary/test_ctxpopup.c
index 9293647..f547f08 100644
--- a/src/bin/elementary/test_ctxpopup.c
+++ b/src/bin/elementary/test_ctxpopup.c
@@ -39,10 +39,11 @@ _print_current_dir(Evas_Object *obj)
39} 39}
40 40
41static void 41static void
42_btn_clicked_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, 42_btn_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED,
43 void *event_info EINA_UNUSED) 43 void *event_info EINA_UNUSED)
44{ 44{
45 printf("Button Clicked\n"); 45 printf("Button Clicked\n");
46 elm_object_disabled_set(data, !elm_object_disabled_get(data));
46} 47}
47 48
48static void 49static void
diff --git a/src/bin/elementary/test_efl_anim_event_anim.c b/src/bin/elementary/test_efl_anim_event_anim.c
deleted file mode 100644
index b4c3518..0000000
--- a/src/bin/elementary/test_efl_anim_event_anim.c
+++ /dev/null
@@ -1,91 +0,0 @@
1#ifdef HAVE_CONFIG_H
2# include "elementary_config.h"
3#endif
4#include <Elementary.h>
5
6typedef struct _App_Data
7{
8 Efl_Canvas_Animation_Player *target;
9
10 Eina_Bool is_btn_visible;
11} App_Data;
12
13static void
14_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info EINA_UNUSED)
15{
16 App_Data *ad = data;
17
18 ad->is_btn_visible = !(ad->is_btn_visible);
19
20 if (ad->is_btn_visible)
21 {
22 //Start animtion by showing button
23 evas_object_show(ad->target);
24 elm_object_text_set(obj, "Hide Button");
25 }
26 else
27 {
28 //Start animtion by hiding button
29 evas_object_hide(ad->target);
30 elm_object_text_set(obj, "Show Button");
31 }
32}
33
34static void
35_win_del_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
36{
37 App_Data *ad = data;
38 free(ad);
39}
40
41void
42test_efl_anim_event_anim(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
43{
44 App_Data *ad = calloc(1, sizeof(App_Data));
45 if (!ad) return;
46
47 Evas_Object *win = elm_win_add(NULL, "Efl Animation Event Animation", ELM_WIN_BASIC);
48 elm_win_title_set(win, "Efl Animation Event Animation");
49 elm_win_autodel_set(win, EINA_TRUE);
50 evas_object_smart_callback_add(win, "delete,request", _win_del_cb, ad);
51
52 //Button to be animated
53 Evas_Object *btn = elm_button_add(win);
54 elm_object_text_set(btn, "Button");
55 evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
56 evas_object_resize(btn, 200, 200);
57 evas_object_move(btn, 100, 50);
58
59 //Show Animation
60 Efl_Canvas_Animation *show_anim = efl_add(EFL_CANVAS_ANIMATION_ALPHA_CLASS, win);
61 efl_animation_alpha_set(show_anim, 0.0, 1.0);
62 efl_animation_duration_set(show_anim, 1.0);
63 efl_animation_final_state_keep_set(show_anim, EINA_TRUE);
64 efl_canvas_object_event_animation_set(btn, EFL_GFX_ENTITY_EVENT_SHOW, show_anim);
65
66 //Show button after setting event animation to show animation for show event
67 evas_object_show(btn);
68
69 //Hide Animation
70 Efl_Canvas_Animation *hide_anim = efl_add(EFL_CANVAS_ANIMATION_ALPHA_CLASS, win);
71 efl_animation_alpha_set(hide_anim, 1.0, 0.0);
72 efl_animation_duration_set(hide_anim, 1.0);
73 efl_animation_final_state_keep_set(hide_anim, EINA_TRUE);
74 efl_canvas_object_event_animation_set(btn, EFL_GFX_ENTITY_EVENT_HIDE, hide_anim);
75
76 //Initialize App Data
77 ad->target = btn;
78 ad->is_btn_visible = EINA_TRUE;
79
80 //Button to start animation
81 Evas_Object *btn2 = elm_button_add(win);
82 elm_object_text_set(btn2, "Hide Button");
83 evas_object_smart_callback_add(btn2, "clicked", _btn_clicked_cb, ad);
84 evas_object_size_hint_weight_set(btn2, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
85 evas_object_resize(btn2, 200, 50);
86 evas_object_move(btn2, 100, 300);
87 evas_object_show(btn2);
88
89 evas_object_resize(win, 400, 400);
90 evas_object_show(win);
91}
diff --git a/src/bin/elementary/test_efl_gfx_mapping.c b/src/bin/elementary/test_efl_gfx_mapping.c
index 71cfd82..c4080c1 100644
--- a/src/bin/elementary/test_efl_gfx_mapping.c
+++ b/src/bin/elementary/test_efl_gfx_mapping.c
@@ -1,6 +1,7 @@
1#ifdef HAVE_CONFIG_H 1#ifdef HAVE_CONFIG_H
2# include "elementary_config.h" 2# include "elementary_config.h"
3#endif 3#endif
4#include <Efl_Ui.h>
4#include <Elementary.h> 5#include <Elementary.h>
5 6
6static void 7static void
@@ -53,7 +54,7 @@ test_efl_gfx_mapping(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
53 snprintf(buf, sizeof(buf), "%s/images/rock_02.jpg", elm_app_data_dir_get()); 54 snprintf(buf, sizeof(buf), "%s/images/rock_02.jpg", elm_app_data_dir_get());
54 img = efl_add(EFL_UI_IMAGE_CLASS, win, 55 img = efl_add(EFL_UI_IMAGE_CLASS, win,
55 efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(64, 64)), 56 efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(64, 64)),
56 efl_file_set(efl_added, buf, NULL)); 57 efl_file_set(efl_added, buf));
57 efl_gfx_image_scale_type_set(img, EFL_GFX_IMAGE_SCALE_TYPE_FILL); 58 efl_gfx_image_scale_type_set(img, EFL_GFX_IMAGE_SCALE_TYPE_FILL);
58 evas_object_event_callback_add(img, EVAS_CALLBACK_RESIZE, 59 evas_object_event_callback_add(img, EVAS_CALLBACK_RESIZE,
59 _image_resize_cb, NULL); 60 _image_resize_cb, NULL);
diff --git a/src/bin/elementary/test_efl_ui_text.c b/src/bin/elementary/test_efl_ui_text.c
index 9cc2a32..120eca7 100644
--- a/src/bin/elementary/test_efl_ui_text.c
+++ b/src/bin/elementary/test_efl_ui_text.c
@@ -2,6 +2,7 @@
2# include "elementary_config.h" 2# include "elementary_config.h"
3#endif 3#endif
4#define EO_BETA_API 4#define EO_BETA_API
5#include <Efl_Ui.h>
5#include <Elementary.h> 6#include <Elementary.h>
6 7
7static void 8static void
@@ -41,7 +42,7 @@ test_efl_ui_text_label(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, voi
41 char *markup; 42 char *markup;
42 43
43 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL, 44 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL,
44 efl_ui_win_type_set(efl_added, EFL_UI_WIN_BASIC), 45 efl_ui_win_type_set(efl_added, EFL_UI_WIN_TYPE_BASIC),
45 efl_text_set(efl_added, "Efl Canvas_Layout"), 46 efl_text_set(efl_added, "Efl Canvas_Layout"),
46 efl_ui_win_autodel_set(efl_added, EINA_TRUE)); 47 efl_ui_win_autodel_set(efl_added, EINA_TRUE));
47 48
@@ -145,7 +146,7 @@ test_efl_ui_text(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *eve
145 Eo *bt; 146 Eo *bt;
146 147
147 win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(), 148 win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(),
148 efl_ui_win_type_set(efl_added, EFL_UI_WIN_BASIC), 149 efl_ui_win_type_set(efl_added, EFL_UI_WIN_TYPE_BASIC),
149 efl_text_set(efl_added, "Efl Ui Text"), 150 efl_text_set(efl_added, "Efl Ui Text"),
150 efl_ui_win_autodel_set(efl_added, EINA_TRUE)); 151 efl_ui_win_autodel_set(efl_added, EINA_TRUE));
151 152
@@ -204,7 +205,7 @@ test_efl_ui_text_inputfield(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED
204 Eo *win, *bx, *en; 205 Eo *win, *bx, *en;
205 206
206 win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(), 207 win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(),
207 efl_ui_win_type_set(efl_added, EFL_UI_WIN_BASIC), 208 efl_ui_win_type_set(efl_added, EFL_UI_WIN_TYPE_BASIC),
208 efl_text_set(efl_added, "Efl Ui Text Input Field"), 209 efl_text_set(efl_added, "Efl Ui Text Input Field"),
209 efl_ui_win_autodel_set(efl_added, EINA_TRUE)); 210 efl_ui_win_autodel_set(efl_added, EINA_TRUE));
210 211
@@ -251,7 +252,7 @@ _on_factory_bt_image_clicked(void *data, const Efl_Event *event EINA_UNUSED)
251 252
252 image_idx = (image_idx + 1) % IMAGES_SZ; 253 image_idx = (image_idx + 1) % IMAGES_SZ;
253 efl_text_cursor_item_insert(en, 254 efl_text_cursor_item_insert(en,
254 efl_text_cursor_get(en, EFL_TEXT_CURSOR_GET_MAIN), 255 efl_text_cursor_get(en, EFL_TEXT_CURSOR_GET_TYPE_MAIN),
255 images[image_idx], "size=32x32"); 256 images[image_idx], "size=32x32");
256 printf("Inserted image: key = %s\n", images[image_idx]); 257 printf("Inserted image: key = %s\n", images[image_idx]);
257} 258}
@@ -260,7 +261,7 @@ static void
260_on_factory_bt_emoticon_clicked(void *data, const Efl_Event *event EINA_UNUSED) 261_on_factory_bt_emoticon_clicked(void *data, const Efl_Event *event EINA_UNUSED)
261{ 262{
262 Evas_Object *en = data; 263 Evas_Object *en = data;
263 efl_text_cursor_item_insert(en, efl_text_cursor_get(en, EFL_TEXT_CURSOR_GET_MAIN), 264 efl_text_cursor_item_insert(en, efl_text_cursor_get(en, EFL_TEXT_CURSOR_GET_TYPE_MAIN),
264 "emoticon/evil-laugh", "size=32x32"); 265 "emoticon/evil-laugh", "size=32x32");
265} 266}
266 267
@@ -294,7 +295,7 @@ test_ui_text_item_factory(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
294 Eina_File *f; 295 Eina_File *f;
295 296
296 win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(), 297 win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(),
297 efl_ui_win_type_set(efl_added, EFL_UI_WIN_BASIC), 298 efl_ui_win_type_set(efl_added, EFL_UI_WIN_TYPE_BASIC),
298 efl_text_set(efl_added, "Efl Ui Text Item Factory"), 299 efl_text_set(efl_added, "Efl Ui Text Item Factory"),
299 efl_ui_win_autodel_set(efl_added, EINA_TRUE)); 300 efl_ui_win_autodel_set(efl_added, EINA_TRUE));
300 301
@@ -353,7 +354,7 @@ test_ui_text_item_factory(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
353 efl_text_font_set(en, "Sans", 14); 354 efl_text_font_set(en, "Sans", 14);
354 efl_text_normal_color_set(en, 255, 255, 255, 255); 355 efl_text_normal_color_set(en, 255, 255, 255, 255);
355 356
356 main_cur = efl_text_cursor_get(en, EFL_TEXT_CURSOR_GET_MAIN); 357 main_cur = efl_text_cursor_get(en, EFL_TEXT_CURSOR_GET_TYPE_MAIN);
357 cur = efl_text_cursor_new(en); 358 cur = efl_text_cursor_new(en);
358 359
359 efl_text_cursor_position_set(en, cur, 2); 360 efl_text_cursor_position_set(en, cur, 2);
diff --git a/src/bin/elementary/test_entry.c b/src/bin/elementary/test_entry.c
index cf3b148..56264cc 100644
--- a/src/bin/elementary/test_entry.c
+++ b/src/bin/elementary/test_entry.c
@@ -5,8 +5,8 @@
5#include <Elementary.h> 5#include <Elementary.h>
6 6
7// FIXME: elm_entry is not part of EO API, the below test cases may be useless 7// FIXME: elm_entry is not part of EO API, the below test cases may be useless
8#include "elm_entry.eo.h" 8#include "elm_entry_eo.h"
9#include "elm_popup.eo.h" 9#include "elm_popup_eo.h"
10 10
11static void 11static void
12my_entry_bt_1(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 12my_entry_bt_1(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
diff --git a/src/bin/elementary/test_evas_map.c b/src/bin/elementary/test_evas_map.c
index b598044..3cabe96 100644
--- a/src/bin/elementary/test_evas_map.c
+++ b/src/bin/elementary/test_evas_map.c
@@ -1,6 +1,7 @@
1#ifdef HAVE_CONFIG_H 1#ifdef HAVE_CONFIG_H
2# include "elementary_config.h" 2# include "elementary_config.h"
3#endif 3#endif
4#include <Efl_Ui.h>
4#include <Elementary.h> 5#include <Elementary.h>
5 6
6static void 7static void
@@ -61,7 +62,8 @@ test_evas_map(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
61 snprintf(buf, sizeof(buf), "%s/images/rock_02.jpg", elm_app_data_dir_get()); 62 snprintf(buf, sizeof(buf), "%s/images/rock_02.jpg", elm_app_data_dir_get());
62 img = efl_add(EFL_UI_IMAGE_CLASS, win, 63 img = efl_add(EFL_UI_IMAGE_CLASS, win,
63 efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(64, 64)), 64 efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(64, 64)),
64 efl_file_set(efl_added, buf, NULL)); 65 efl_file_set(efl_added, buf),
66 efl_file_load(efl_added));
65 efl_gfx_image_scale_type_set(img, EFL_GFX_IMAGE_SCALE_TYPE_FILL); 67 efl_gfx_image_scale_type_set(img, EFL_GFX_IMAGE_SCALE_TYPE_FILL);
66 evas_object_event_callback_add(img, EVAS_CALLBACK_RESIZE, 68 evas_object_event_callback_add(img, EVAS_CALLBACK_RESIZE,
67 _image_resize_cb, NULL); 69 _image_resize_cb, NULL);
diff --git a/src/bin/elementary/test_evas_mask.c b/src/bin/elementary/test_evas_mask.c
index 497d4a2..223d657 100644
--- a/src/bin/elementary/test_evas_mask.c
+++ b/src/bin/elementary/test_evas_mask.c
@@ -2,6 +2,7 @@
2# include "elementary_config.h" 2# include "elementary_config.h"
3#endif 3#endif
4#include <Elementary.h> 4#include <Elementary.h>
5#include <Efl_Ui.h>
5 6
6 7
7static Evas_Object * 8static Evas_Object *
@@ -118,12 +119,13 @@ test_evas_mask(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event
118 119
119 // FIXME: No API to set background as "tile" :( 120 // FIXME: No API to set background as "tile" :(
120 snprintf(buf, sizeof(buf), "%s/images/pm_fill.png", elm_app_data_dir_get()); 121 snprintf(buf, sizeof(buf), "%s/images/pm_fill.png", elm_app_data_dir_get());
121 efl_file_set(efl_part(win, "background"), buf, NULL); 122 efl_file_simple_load(efl_part(win, "background"), buf, NULL);
122 123
123 // FIXME: layout EO API 124 // FIXME: layout EO API
124 snprintf(buf, sizeof(buf), "%s/objects/test_masking.edj", elm_app_data_dir_get()); 125 snprintf(buf, sizeof(buf), "%s/objects/test_masking.edj", elm_app_data_dir_get());
125 ly = efl_add(EFL_UI_LAYOUT_CLASS, win, 126 ly = efl_add(EFL_UI_LAYOUT_CLASS, win,
126 efl_file_set(efl_added, buf, "masking")); 127 efl_file_set(efl_added, buf),
128 efl_file_key_set(efl_added, "masking"));
127 efl_pack(box, ly); 129 efl_pack(box, ly);
128 130
129 // FIXME: No genlist in EO API 131 // FIXME: No genlist in EO API
diff --git a/src/bin/elementary/test_evas_snapshot.c b/src/bin/elementary/test_evas_snapshot.c
index c1b110e..855c33a 100644
--- a/src/bin/elementary/test_evas_snapshot.c
+++ b/src/bin/elementary/test_evas_snapshot.c
@@ -1,6 +1,7 @@
1#ifdef HAVE_CONFIG_H 1#ifdef HAVE_CONFIG_H
2# include "elementary_config.h" 2# include "elementary_config.h"
3#endif 3#endif
4#include <Efl_Ui.h>
4#include <Elementary.h> 5#include <Elementary.h>
5 6
6#define TABLE_SIZE 10 7#define TABLE_SIZE 10
@@ -29,7 +30,8 @@ static inline Eo *
29_image_create(Eo *win, const char *path) 30_image_create(Eo *win, const char *path)
30{ 31{
31 return efl_add(EFL_UI_IMAGE_CLASS, win, 32 return efl_add(EFL_UI_IMAGE_CLASS, win,
32 efl_file_set(efl_added, path, NULL), 33 efl_file_set(efl_added, path),
34 efl_file_load(efl_added),
33 efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(20, 20))); 35 efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(20, 20)));
34} 36}
35 37
diff --git a/src/bin/elementary/test_events.c b/src/bin/elementary/test_events.c
index 1eba66c..e81fca5 100644
--- a/src/bin/elementary/test_events.c
+++ b/src/bin/elementary/test_events.c
@@ -1,6 +1,7 @@
1#ifdef HAVE_CONFIG_H 1#ifdef HAVE_CONFIG_H
2# include "elementary_config.h" 2# include "elementary_config.h"
3#endif 3#endif
4#include <Efl_Ui.h>
4#include <Elementary.h> 5#include <Elementary.h>
5 6
6#define EFL_INTERNAL_UNSTABLE 7#define EFL_INTERNAL_UNSTABLE
diff --git a/src/bin/elementary/test_gfx_filters.c b/src/bin/elementary/test_gfx_filters.c
index 965720a..4937219 100644
--- a/src/bin/elementary/test_gfx_filters.c
+++ b/src/bin/elementary/test_gfx_filters.c
@@ -3,7 +3,8 @@
3#endif 3#endif
4 4
5#include <Elementary.h> 5#include <Elementary.h>
6#include "elm_colorselector.eo.h" 6#include <Efl_Ui.h>
7#include "elm_spinner_eo.h"
7 8
8static const int default_font_size = 48; 9static const int default_font_size = 48;
9 10
@@ -307,7 +308,7 @@ _flip_click(void *data, const Efl_Event *ev EINA_UNUSED)
307 Eo *flip = efl_key_wref_get(win, "flip"); 308 Eo *flip = efl_key_wref_get(win, "flip");
308 309
309 /* FIXME: The flip APIs don't make sense for N items (front!?) */ 310 /* FIXME: The flip APIs don't make sense for N items (front!?) */
310 efl_ui_flip_go(flip, EFL_UI_FLIP_CROSS_FADE); 311 efl_ui_flip_go(flip, EFL_UI_FLIP_MODE_CROSS_FADE);
311} 312}
312 313
313static void 314static void
@@ -403,7 +404,7 @@ test_gfx_filters(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *eve
403 efl_gfx_hint_align_set(efl_added, 0.5, 0.5), 404 efl_gfx_hint_align_set(efl_added, 0.5, 0.5),
404 efl_gfx_hint_size_max_set(efl_added, size), 405 efl_gfx_hint_size_max_set(efl_added, size),
405 efl_gfx_hint_size_min_set(efl_added, size), 406 efl_gfx_hint_size_min_set(efl_added, size),
406 efl_file_set(efl_added, buf, NULL), 407 efl_file_set(efl_added, buf),
407 efl_name_set(efl_added, images[k].src_name), 408 efl_name_set(efl_added, images[k].src_name),
408 elm_object_tooltip_text_set(efl_added, images[k].src_name)); 409 elm_object_tooltip_text_set(efl_added, images[k].src_name));
409 if (efl_player_playable_get(o)) 410 if (efl_player_playable_get(o))
diff --git a/src/bin/elementary/test_glview.c b/src/bin/elementary/test_glview.c
index 2a42b95..d71e371 100644
--- a/src/bin/elementary/test_glview.c
+++ b/src/bin/elementary/test_glview.c
@@ -1,8 +1,10 @@
1#ifdef HAVE_CONFIG_H 1#ifdef HAVE_CONFIG_H
2# include "elementary_config.h" 2# include "elementary_config.h"
3#endif 3#endif
4#include <Efl_Ui.h>
4#include <Elementary.h> 5#include <Elementary.h>
5 6
7#include <Efl_Ui.h>
6#include <Elementary.h> 8#include <Elementary.h>
7#ifndef M_PI 9#ifndef M_PI
8#define M_PI 3.14159265 10#define M_PI 3.14159265
diff --git a/src/bin/elementary/test_image.c b/src/bin/elementary/test_image.c
index c6d5f7a..986767b 100644
--- a/src/bin/elementary/test_image.c
+++ b/src/bin/elementary/test_image.c
@@ -1,6 +1,7 @@
1#ifdef HAVE_CONFIG_H 1#ifdef HAVE_CONFIG_H
2# include "elementary_config.h" 2# include "elementary_config.h"
3#endif 3#endif
4#include <Efl_Ui.h>
4#include <Elementary.h> 5#include <Elementary.h>
5 6
6static const struct { 7static const struct {
diff --git a/src/bin/elementary/test_nstate.c b/src/bin/elementary/test_nstate.c
index 4da3b21..717828e 100644
--- a/src/bin/elementary/test_nstate.c
+++ b/src/bin/elementary/test_nstate.c
@@ -1,6 +1,7 @@
1#ifdef HAVE_CONFIG_H 1#ifdef HAVE_CONFIG_H
2# include "elementary_config.h" 2# include "elementary_config.h"
3#endif 3#endif
4#include <Efl_Ui.h>
4#include <Elementary.h> 5#include <Elementary.h>
5 6
6static void 7static void
diff --git a/src/bin/elementary/test_part_bg.c b/src/bin/elementary/test_part_bg.c
index 37e39da..2724870 100644
--- a/src/bin/elementary/test_part_bg.c
+++ b/src/bin/elementary/test_part_bg.c
@@ -1,6 +1,7 @@
1#ifdef HAVE_CONFIG_H 1#ifdef HAVE_CONFIG_H
2# include "elementary_config.h" 2# include "elementary_config.h"
3#endif 3#endif
4#include <Efl_Ui.h>
4#include <Elementary.h> 5#include <Elementary.h>
5 6
6#define MAX_NUM_OF_CONTENT 18 7#define MAX_NUM_OF_CONTENT 18
@@ -18,7 +19,7 @@ _reset_cb(void *data, const Efl_Event *ev EINA_UNUSED)
18 target = evas_object_data_get(radio, "data"); 19 target = evas_object_data_get(radio, "data");
19 20
20 efl_gfx_color_set(efl_part(target, "background"), 0, 0, 0, 0); 21 efl_gfx_color_set(efl_part(target, "background"), 0, 0, 0, 0);
21 efl_file_set(efl_part(target, "background"), NULL, NULL); 22 efl_file_simple_load(efl_part(target, "background"), NULL, NULL);
22} 23}
23 24
24static void 25static void
@@ -46,7 +47,7 @@ _scale_type_cb(void *data, const Efl_Event *ev EINA_UNUSED)
46 target = evas_object_data_get(radio, "data"); 47 target = evas_object_data_get(radio, "data");
47 48
48 snprintf(buf, sizeof(buf), "%s/images/plant_01.jpg", elm_app_data_dir_get()); 49 snprintf(buf, sizeof(buf), "%s/images/plant_01.jpg", elm_app_data_dir_get());
49 efl_file_set(efl_part(target, "background"), buf, NULL); 50 efl_file_simple_load(efl_part(target, "background"), buf, NULL);
50 type = efl_gfx_image_scale_type_get(efl_part(target, "background")); 51 type = efl_gfx_image_scale_type_get(efl_part(target, "background"));
51 type = (type + 1) % 5; 52 type = (type + 1) % 5;
52 efl_gfx_image_scale_type_set(efl_part(target, "background"), type); 53 efl_gfx_image_scale_type_set(efl_part(target, "background"), type);
@@ -103,7 +104,7 @@ _create_box_contents(Evas_Object *box)
103 if (efl_isa(content, EFL_UI_IMAGE_CLASS)) 104 if (efl_isa(content, EFL_UI_IMAGE_CLASS))
104 { 105 {
105 snprintf(buf, sizeof(buf), "%s/images/logo.png", elm_app_data_dir_get()); 106 snprintf(buf, sizeof(buf), "%s/images/logo.png", elm_app_data_dir_get());
106 efl_file_set(content, buf, NULL); 107 efl_file_simple_load(content, buf, NULL);
107 } 108 }
108 109
109 evas_object_data_set(radio, "data", content); 110 evas_object_data_set(radio, "data", content);
diff --git a/src/bin/elementary/test_part_shadow.c b/src/bin/elementary/test_part_shadow.c
index 70d9a6f..a0e1165 100644
--- a/src/bin/elementary/test_part_shadow.c
+++ b/src/bin/elementary/test_part_shadow.c
@@ -3,6 +3,7 @@
3#endif 3#endif
4 4
5#define EFL_UI_WIDGET_PROTECTED 5#define EFL_UI_WIDGET_PROTECTED
6#include <Efl_Ui.h>
6#include <Elementary.h> 7#include <Elementary.h>
7 8
8typedef struct Test_Data 9typedef struct Test_Data
@@ -109,7 +110,7 @@ test_part_shadow(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *eve
109 110
110 ic = efl_add(EFL_UI_IMAGE_CLASS, win); 111 ic = efl_add(EFL_UI_IMAGE_CLASS, win);
111 snprintf(buf, sizeof(buf), "%s/images/logo.png", elm_app_data_dir_get()); 112 snprintf(buf, sizeof(buf), "%s/images/logo.png", elm_app_data_dir_get());
112 efl_file_set(ic, buf, NULL); 113 efl_file_simple_load(ic, buf, NULL);
113 efl_pack(bx, ic); 114 efl_pack(bx, ic);
114 td->ico = ic; 115 td->ico = ic;
115 116
diff --git a/src/bin/elementary/test_photocam.c b/src/bin/elementary/test_photocam.c
index c1e055e..cbfb79a 100644
--- a/src/bin/elementary/test_photocam.c
+++ b/src/bin/elementary/test_photocam.c
@@ -1,6 +1,7 @@
1#ifdef HAVE_CONFIG_H 1#ifdef HAVE_CONFIG_H
2# include "elementary_config.h" 2# include "elementary_config.h"
3#endif 3#endif
4#include <Efl_Ui.h>
4#include <Elementary.h> 5#include <Elementary.h>
5 6
6static const struct { 7static const struct {
@@ -142,7 +143,7 @@ my_bt_open(void *data, Evas_Object *obj EINA_UNUSED, void *event_info)
142 if (eina_list_count(grps) > 0) 143 if (eina_list_count(grps) > 0)
143 { 144 {
144 const char *grp = eina_list_nth(grps, 0); 145 const char *grp = eina_list_nth(grps, 0);
145 efl_file_set(ph, file, grp); 146 efl_file_simple_load(ph, file, grp);
146 printf("Successfully set the edje file: %s, group: %s\n", file, grp); 147 printf("Successfully set the edje file: %s, group: %s\n", file, grp);
147 } 148 }
148 else printf("Failed to set edje file\n"); 149 else printf("Failed to set edje file\n");
@@ -805,7 +806,7 @@ test_image_zoomable_animated(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSE
805 char buf[PATH_MAX]; 806 char buf[PATH_MAX];
806 807
807 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL, 808 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL,
808 efl_ui_win_type_set(efl_added, EFL_UI_WIN_BASIC), 809 efl_ui_win_type_set(efl_added, EFL_UI_WIN_TYPE_BASIC),
809 efl_text_set(efl_added, "Efl.Ui.Image_Zoomable animation"), 810 efl_text_set(efl_added, "Efl.Ui.Image_Zoomable animation"),
810 efl_ui_win_autodel_set(efl_added, EINA_TRUE)); 811 efl_ui_win_autodel_set(efl_added, EINA_TRUE));
811 812
@@ -823,7 +824,8 @@ test_image_zoomable_animated(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSE
823 824
824 snprintf(buf, sizeof(buf), "%s/images/animated_logo.gif", elm_app_data_dir_get()); 825 snprintf(buf, sizeof(buf), "%s/images/animated_logo.gif", elm_app_data_dir_get());
825 zoomable = efl_add(EFL_UI_IMAGE_ZOOMABLE_CLASS, win, 826 zoomable = efl_add(EFL_UI_IMAGE_ZOOMABLE_CLASS, win,
826 efl_file_set(efl_added, buf, NULL), 827 efl_file_set(efl_added, buf),
828 efl_file_load(efl_added),
827 efl_pack(bx, efl_added), 829 efl_pack(bx, efl_added),
828 efl_event_callback_add(efl_added, EFL_UI_EVENT_CLICKED, _zoomable_clicked_cb, NULL) 830 efl_event_callback_add(efl_added, EFL_UI_EVENT_CLICKED, _zoomable_clicked_cb, NULL)
829 ); 831 );
diff --git a/src/bin/elementary/test_systray.c b/src/bin/elementary/test_systray.c
index f4ade32..1b159aa 100644
--- a/src/bin/elementary/test_systray.c
+++ b/src/bin/elementary/test_systray.c
@@ -6,7 +6,7 @@
6 6
7// FIXME: systray has no proper legacy API and clearly isn't ready for prime 7// FIXME: systray has no proper legacy API and clearly isn't ready for prime
8// time with EO either. 8// time with EO either.
9#include "elm_systray.eo.h" 9#include "elm_systray_eo.h"
10 10
11#define WIDTH 320 11#define WIDTH 320
12#define HEIGHT 160 12#define HEIGHT 160
diff --git a/src/bin/elementary/test_ui_box.c b/src/bin/elementary/test_ui_box.c
index d3cfc1c..c5b9db8 100644
--- a/src/bin/elementary/test_ui_box.c
+++ b/src/bin/elementary/test_ui_box.c
@@ -4,6 +4,7 @@
4#endif 4#endif
5 5
6#define EFL_PACK_LAYOUT_PROTECTED 6#define EFL_PACK_LAYOUT_PROTECTED
7#include <Efl_Ui.h>
7#include <Elementary.h> 8#include <Elementary.h>
8#include <assert.h> 9#include <assert.h>
9 10
diff --git a/src/bin/elementary/test_ui_button.c b/src/bin/elementary/test_ui_button.c
index f5aa340..1696a6d 100644
--- a/src/bin/elementary/test_ui_button.c
+++ b/src/bin/elementary/test_ui_button.c
@@ -1,6 +1,7 @@
1#ifdef HAVE_CONFIG_H 1#ifdef HAVE_CONFIG_H
2# include "elementary_config.h" 2# include "elementary_config.h"
3#endif 3#endif
4#include <Efl_Ui.h>
4#include <Elementary.h> 5#include <Elementary.h>
5 6
6static void 7static void
@@ -28,7 +29,7 @@ test_ui_button(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event
28 char buf[PATH_MAX]; 29 char buf[PATH_MAX];
29 30
30 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL, 31 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL,
31 efl_ui_win_type_set(efl_added, EFL_UI_WIN_BASIC), 32 efl_ui_win_type_set(efl_added, EFL_UI_WIN_TYPE_BASIC),
32 efl_text_set(efl_added, "Efl.Ui.Button"), 33 efl_text_set(efl_added, "Efl.Ui.Button"),
33 efl_ui_win_autodel_set(efl_added, EINA_TRUE) 34 efl_ui_win_autodel_set(efl_added, EINA_TRUE)
34 ); 35 );
@@ -55,7 +56,7 @@ test_ui_button(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event
55 efl_event_callback_add(efl_added, EFL_UI_EVENT_UNPRESSED, _unpressed, NULL) 56 efl_event_callback_add(efl_added, EFL_UI_EVENT_UNPRESSED, _unpressed, NULL)
56 ); 57 );
57 efl_add(EFL_UI_IMAGE_CLASS, btn, 58 efl_add(EFL_UI_IMAGE_CLASS, btn,
58 efl_file_set(efl_added, buf, NULL), 59 efl_file_set(efl_added, buf),
59 efl_content_set(btn, efl_added) 60 efl_content_set(btn, efl_added)
60 ); 61 );
61 62
@@ -69,7 +70,7 @@ test_ui_button(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event
69 efl_event_callback_add(efl_added, EFL_UI_EVENT_UNPRESSED, _unpressed, NULL) 70 efl_event_callback_add(efl_added, EFL_UI_EVENT_UNPRESSED, _unpressed, NULL)
70 ); 71 );
71 efl_add(EFL_UI_IMAGE_CLASS, btn, 72 efl_add(EFL_UI_IMAGE_CLASS, btn,
72 efl_file_set(efl_added, buf, NULL), 73 efl_file_set(efl_added, buf),
73 efl_content_set(btn, efl_added) 74 efl_content_set(btn, efl_added)
74 ); 75 );
75 76
diff --git a/src/bin/elementary/test_ui_clock.c b/src/bin/elementary/test_ui_clock.c
index 4a0fa11..936efd1 100644
--- a/src/bin/elementary/test_ui_clock.c
+++ b/src/bin/elementary/test_ui_clock.c
@@ -1,6 +1,7 @@
1#ifdef HAVE_CONFIG_H 1#ifdef HAVE_CONFIG_H
2#include "elementary_config.h" 2#include "elementary_config.h"
3#endif 3#endif
4#include <Efl_Ui.h>
4#include <Elementary.h> 5#include <Elementary.h>
5 6
6/* A simple test, just displaying clock in its default format */ 7/* A simple test, just displaying clock in its default format */
@@ -48,7 +49,7 @@ test_ui_clock(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_
48 Evas_Object *win, *bx; 49 Evas_Object *win, *bx;
49 50
50 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL, 51 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL,
51 efl_ui_win_type_set(efl_added, EFL_UI_WIN_BASIC), 52 efl_ui_win_type_set(efl_added, EFL_UI_WIN_TYPE_BASIC),
52 efl_text_set(efl_added, "Efl.Ui.Clock"), 53 efl_text_set(efl_added, "Efl.Ui.Clock"),
53 efl_ui_win_autodel_set(efl_added, EINA_TRUE)); 54 efl_ui_win_autodel_set(efl_added, EINA_TRUE));
54 55
diff --git a/src/bin/elementary/test_ui_datepicker.c b/src/bin/elementary/test_ui_datepicker.c
index 1eb0461..3fe6251 100644
--- a/src/bin/elementary/test_ui_datepicker.c
+++ b/src/bin/elementary/test_ui_datepicker.c
@@ -1,6 +1,7 @@
1#ifdef HAVE_CONFIG_H 1#ifdef HAVE_CONFIG_H
2# include "elementary_config.h" 2# include "elementary_config.h"
3#endif 3#endif
4#include <Efl_Ui.h>
4#include <Elementary.h> 5#include <Elementary.h>
5 6
6static void 7static void
@@ -18,7 +19,7 @@ test_ui_datepicker(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *e
18 Eo *win, *bx; 19 Eo *win, *bx;
19 20
20 win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(), 21 win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(),
21 efl_ui_win_type_set(efl_added, EFL_UI_WIN_BASIC), 22 efl_ui_win_type_set(efl_added, EFL_UI_WIN_TYPE_BASIC),
22 efl_text_set(efl_added, "Efl.Ui.Datepicker"), 23 efl_text_set(efl_added, "Efl.Ui.Datepicker"),
23 efl_ui_win_autodel_set(efl_added, EINA_TRUE)); 24 efl_ui_win_autodel_set(efl_added, EINA_TRUE));
24 25
diff --git a/src/bin/elementary/test_ui_pager.c b/src/bin/elementary/test_ui_pager.c
index e8d602f..9a51699 100644
--- a/src/bin/elementary/test_ui_pager.c
+++ b/src/bin/elementary/test_ui_pager.c
@@ -4,6 +4,7 @@
4#define EO_BETA_API 4#define EO_BETA_API
5#define EFL_UI_WIDGET_PROTECTED 5#define EFL_UI_WIDGET_PROTECTED
6 6
7#include <Efl_Ui.h>
7#include <Elementary.h> 8#include <Elementary.h>
8 9
9 10
@@ -78,7 +79,9 @@ static Eo *page_add(Page_Type p, Eo *parent)
78 snprintf(buf, sizeof(buf), "%s/objects/test_pager.edj", 79 snprintf(buf, sizeof(buf), "%s/objects/test_pager.edj",
79 elm_app_data_dir_get()); 80 elm_app_data_dir_get());
80 page = efl_add(EFL_UI_LAYOUT_CLASS, parent, 81 page = efl_add(EFL_UI_LAYOUT_CLASS, parent,
81 efl_file_set(efl_added, buf, "page"), 82 efl_file_set(efl_added, buf),
83 efl_file_key_set(efl_added, "page"),
84 efl_file_load(efl_added),
82 efl_text_set(efl_part(efl_added, "text"), "Layout Page")); 85 efl_text_set(efl_part(efl_added, "text"), "Layout Page"));
83 efl_gfx_hint_fill_set(page, EINA_TRUE, EINA_TRUE); 86 efl_gfx_hint_fill_set(page, EINA_TRUE, EINA_TRUE);
84 break; 87 break;
@@ -104,7 +107,9 @@ static Eo *page_add(Page_Type p, Eo *parent)
104 snprintf(buf, sizeof(buf), "%s/objects/test_pager.edj", 107 snprintf(buf, sizeof(buf), "%s/objects/test_pager.edj",
105 elm_app_data_dir_get()); 108 elm_app_data_dir_get());
106 page = efl_add(EFL_UI_LAYOUT_CLASS, parent, 109 page = efl_add(EFL_UI_LAYOUT_CLASS, parent,
107 efl_file_set(efl_added, buf, "page"), 110 efl_file_set(efl_added, buf),
111 efl_file_key_set(efl_added, "page"),
112 efl_file_load(efl_added),
108 efl_text_set(efl_part(efl_added, "text"), "Layout Page")); 113 efl_text_set(efl_part(efl_added, "text"), "Layout Page"));
109 efl_gfx_hint_fill_set(page, EINA_TRUE, EINA_TRUE); 114 efl_gfx_hint_fill_set(page, EINA_TRUE, EINA_TRUE);
110 break; 115 break;
@@ -674,7 +679,7 @@ void test_ui_pager(void *data EINA_UNUSED,
674 int i; 679 int i;
675 680
676 win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(), 681 win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(),
677 efl_ui_win_type_set(efl_added, EFL_UI_WIN_BASIC), 682 efl_ui_win_type_set(efl_added, EFL_UI_WIN_TYPE_BASIC),
678 efl_text_set(efl_added, "Pager"), 683 efl_text_set(efl_added, "Pager"),
679 efl_ui_win_autodel_set(efl_added, EINA_TRUE)); 684 efl_ui_win_autodel_set(efl_added, EINA_TRUE));
680 685
@@ -696,7 +701,9 @@ void test_ui_pager(void *data EINA_UNUSED,
696 snprintf(buf, sizeof(buf), "%s/objects/test_pager.edj", 701 snprintf(buf, sizeof(buf), "%s/objects/test_pager.edj",
697 elm_app_data_dir_get()); 702 elm_app_data_dir_get());
698 layout = efl_add(EFL_UI_LAYOUT_CLASS, panes, 703 layout = efl_add(EFL_UI_LAYOUT_CLASS, panes,
699 efl_file_set(efl_added, buf, "pager"), 704 efl_file_set(efl_added, buf),
705 efl_file_key_set(efl_added, "pager"),
706 efl_file_load(efl_added),
700 efl_content_set(efl_part(panes, "second"), efl_added)); 707 efl_content_set(efl_part(panes, "second"), efl_added));
701 708
702 pager = efl_add(EFL_UI_PAGER_CLASS, layout, 709 pager = efl_add(EFL_UI_PAGER_CLASS, layout,
diff --git a/src/bin/elementary/test_ui_pager_scroll.c b/src/bin/elementary/test_ui_pager_scroll.c
index 9941304..f062a9d 100644
--- a/src/bin/elementary/test_ui_pager_scroll.c
+++ b/src/bin/elementary/test_ui_pager_scroll.c
@@ -4,6 +4,7 @@
4#define EO_BETA_API 4#define EO_BETA_API
5#define EFL_UI_WIDGET_PROTECTED 5#define EFL_UI_WIDGET_PROTECTED
6 6
7#include <Efl_Ui.h>
7#include <Elementary.h> 8#include <Elementary.h>
8 9
9 10
@@ -83,7 +84,9 @@ static Eo *page_add(Page_Type p, Eo *parent)
83 snprintf(buf, sizeof(buf), "%s/objects/test_pager.edj", 84 snprintf(buf, sizeof(buf), "%s/objects/test_pager.edj",
84 elm_app_data_dir_get()); 85 elm_app_data_dir_get());
85 page = efl_add(EFL_UI_LAYOUT_CLASS, parent, 86 page = efl_add(EFL_UI_LAYOUT_CLASS, parent,
86 efl_file_set(efl_added, buf, "page"), 87 efl_file_set(efl_added, buf),
88 efl_file_key_set(efl_added, "page"),
89 efl_file_load(efl_added),
87 efl_text_set(efl_part(efl_added, "text"), "Layout Page")); 90 efl_text_set(efl_part(efl_added, "text"), "Layout Page"));
88 efl_gfx_hint_fill_set(page, EINA_TRUE, EINA_TRUE); 91 efl_gfx_hint_fill_set(page, EINA_TRUE, EINA_TRUE);
89 break; 92 break;
@@ -109,7 +112,9 @@ static Eo *page_add(Page_Type p, Eo *parent)
109 snprintf(buf, sizeof(buf), "%s/objects/test_pager.edj", 112 snprintf(buf, sizeof(buf), "%s/objects/test_pager.edj",
110 elm_app_data_dir_get()); 113 elm_app_data_dir_get());
111 page = efl_add(EFL_UI_LAYOUT_CLASS, parent, 114 page = efl_add(EFL_UI_LAYOUT_CLASS, parent,
112 efl_file_set(efl_added, buf, "page"), 115 efl_file_set(efl_added, buf),
116 efl_file_key_set(efl_added, "page"),
117 efl_file_load(efl_added),
113 efl_text_set(efl_part(efl_added, "text"), "Layout Page")); 118 efl_text_set(efl_part(efl_added, "text"), "Layout Page"));
114 efl_gfx_hint_fill_set(page, EINA_TRUE, EINA_TRUE); 119 efl_gfx_hint_fill_set(page, EINA_TRUE, EINA_TRUE);
115 break; 120 break;
@@ -855,7 +860,7 @@ void test_ui_pager_scroll(void *data EINA_UNUSED,
855 int i; 860 int i;
856 861
857 win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(), 862 win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(),
858 efl_ui_win_type_set(efl_added, EFL_UI_WIN_BASIC), 863 efl_ui_win_type_set(efl_added, EFL_UI_WIN_TYPE_BASIC),
859 efl_text_set(efl_added, "Pager"), 864 efl_text_set(efl_added, "Pager"),
860 efl_ui_win_autodel_set(efl_added, EINA_TRUE)); 865 efl_ui_win_autodel_set(efl_added, EINA_TRUE));
861 866
@@ -877,7 +882,9 @@ void test_ui_pager_scroll(void *data EINA_UNUSED,
877 snprintf(buf, sizeof(buf), "%s/objects/test_pager.edj", 882 snprintf(buf, sizeof(buf), "%s/objects/test_pager.edj",
878 elm_app_data_dir_get()); 883 elm_app_data_dir_get());
879 layout = efl_add(EFL_UI_LAYOUT_CLASS, panes, 884 layout = efl_add(EFL_UI_LAYOUT_CLASS, panes,
880 efl_file_set(efl_added, buf, "pager"), 885 efl_file_set(efl_added, buf),
886 efl_file_key_set(efl_added, "pager"),
887 efl_file_load(efl_added),
881 efl_content_set(efl_part(panes, "second"), efl_added)); 888 efl_content_set(efl_part(panes, "second"), efl_added));
882 889
883 pager = efl_add(EFL_UI_PAGER_CLASS, layout, 890 pager = efl_add(EFL_UI_PAGER_CLASS, layout,
diff --git a/src/bin/elementary/test_ui_panel.c b/src/bin/elementary/test_ui_panel.c
index 40ca680..a9c3caf 100644
--- a/src/bin/elementary/test_ui_panel.c
+++ b/src/bin/elementary/test_ui_panel.c
@@ -1,6 +1,7 @@
1#ifdef HAVE_CONFIG_H 1#ifdef HAVE_CONFIG_H
2# include "elementary_config.h" 2# include "elementary_config.h"
3#endif 3#endif
4#include <Efl_Ui.h>
4#include <Elementary.h> 5#include <Elementary.h>
5 6
6void 7void
@@ -10,7 +11,7 @@ test_ui_panel(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_
10 Eo *win, *table, *panel; 11 Eo *win, *table, *panel;
11 12
12 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL, 13 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL,
13 efl_ui_win_type_set(efl_added, EFL_UI_WIN_BASIC), 14 efl_ui_win_type_set(efl_added, EFL_UI_WIN_TYPE_BASIC),
14 efl_text_set(efl_added, "Efl.Ui.Panel"), 15 efl_text_set(efl_added, "Efl.Ui.Panel"),
15 efl_ui_win_autodel_set(efl_added, EINA_TRUE)); 16 efl_ui_win_autodel_set(efl_added, EINA_TRUE));
16 17
@@ -19,7 +20,7 @@ test_ui_panel(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_
19 20
20 snprintf(buf, sizeof(buf), "%s/images/plant_01.jpg", elm_app_data_dir_get()); 21 snprintf(buf, sizeof(buf), "%s/images/plant_01.jpg", elm_app_data_dir_get());
21 efl_add(EFL_UI_IMAGE_CLASS, table, 22 efl_add(EFL_UI_IMAGE_CLASS, table,
22 efl_file_set(efl_added, buf, NULL), 23 efl_file_set(efl_added, buf),
23 efl_gfx_hint_weight_set(efl_added, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND), 24 efl_gfx_hint_weight_set(efl_added, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND),
24 efl_gfx_hint_align_set(efl_added, EVAS_HINT_FILL, EVAS_HINT_FILL), 25 efl_gfx_hint_align_set(efl_added, EVAS_HINT_FILL, EVAS_HINT_FILL),
25 efl_pack_table(table, efl_added, 0, 0, 4, 5)); 26 efl_pack_table(table, efl_added, 0, 0, 4, 5));
@@ -103,7 +104,7 @@ test_ui_panel2(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event
103 Eo *win, *box, *check, *btn, *table, *list, *panel; 104 Eo *win, *box, *check, *btn, *table, *list, *panel;
104 105
105 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL, 106 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL,
106 efl_ui_win_type_set(efl_added, EFL_UI_WIN_BASIC), 107 efl_ui_win_type_set(efl_added, EFL_UI_WIN_TYPE_BASIC),
107 efl_text_set(efl_added, "Efl.Ui.Panel"), 108 efl_text_set(efl_added, "Efl.Ui.Panel"),
108 efl_ui_win_autodel_set(efl_added, EINA_TRUE)); 109 efl_ui_win_autodel_set(efl_added, EINA_TRUE));
109 110
diff --git a/src/bin/elementary/test_ui_panes.c b/src/bin/elementary/test_ui_panes.c
index 3dcf010..a9d0c80 100644
--- a/src/bin/elementary/test_ui_panes.c
+++ b/src/bin/elementary/test_ui_panes.c
@@ -1,6 +1,7 @@
1#ifdef HAVE_CONFIG_H 1#ifdef HAVE_CONFIG_H
2# include "elementary_config.h" 2# include "elementary_config.h"
3#endif 3#endif
4#include <Efl_Ui.h>
4#include <Elementary.h> 5#include <Elementary.h>
5 6
6void 7void
@@ -9,7 +10,7 @@ test_panes_minsize(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *e
9 Eo *win, *panes, *panes_h; 10 Eo *win, *panes, *panes_h;
10 11
11 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL, 12 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL,
12 efl_ui_win_type_set(efl_added, EFL_UI_WIN_BASIC), 13 efl_ui_win_type_set(efl_added, EFL_UI_WIN_TYPE_BASIC),
13 efl_text_set(efl_added, "Efl.Ui.Panes"), 14 efl_text_set(efl_added, "Efl.Ui.Panes"),
14 efl_ui_win_autodel_set(efl_added, EINA_TRUE) 15 efl_ui_win_autodel_set(efl_added, EINA_TRUE)
15 ); 16 );
diff --git a/src/bin/elementary/test_ui_popup.c b/src/bin/elementary/test_ui_popup.c
index 311ec1d..d70592c 100644
--- a/src/bin/elementary/test_ui_popup.c
+++ b/src/bin/elementary/test_ui_popup.c
@@ -4,6 +4,7 @@
4 4
5#define EFL_UI_ANCHOR_POPUP_BETA 5#define EFL_UI_ANCHOR_POPUP_BETA
6#define EFL_UI_SCROLL_ALERT_POPUP_BETA 6#define EFL_UI_SCROLL_ALERT_POPUP_BETA
7#include <Efl_Ui.h>
7#include <Elementary.h> 8#include <Elementary.h>
8 9
9#define POPUP_POINT_MAX 8 10#define POPUP_POINT_MAX 8
@@ -85,12 +86,12 @@ _backwall_cb(void *data EINA_UNUSED, const Efl_Event *ev)
85 { 86 {
86 char buf[PATH_MAX]; 87 char buf[PATH_MAX];
87 snprintf(buf, sizeof(buf), "%s/images/sky_01.jpg", elm_app_data_dir_get()); 88 snprintf(buf, sizeof(buf), "%s/images/sky_01.jpg", elm_app_data_dir_get());
88 efl_file_set(efl_part(p_data->efl_ui_popup, "backwall"), buf, NULL); 89 efl_file_simple_load(efl_part(p_data->efl_ui_popup, "backwall"), buf, NULL);
89 efl_text_set(ev->object, "Backwall UnSet"); 90 efl_text_set(ev->object, "Backwall UnSet");
90 } 91 }
91 else 92 else
92 { 93 {
93 efl_file_set(efl_part(p_data->efl_ui_popup, "backwall"), NULL, NULL); 94 efl_file_simple_load(efl_part(p_data->efl_ui_popup, "backwall"), NULL, NULL);
94 efl_text_set(ev->object, "Backwall Set"); 95 efl_text_set(ev->object, "Backwall Set");
95 } 96 }
96 k = !k; 97 k = !k;
@@ -365,7 +366,7 @@ test_ui_alert_popup(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *
365 366
366 Eo *layout = efl_add(EFL_UI_LAYOUT_CLASS, efl_ui_popup); 367 Eo *layout = efl_add(EFL_UI_LAYOUT_CLASS, efl_ui_popup);
367 snprintf(buf, sizeof(buf), "%s/objects/test.edj", elm_app_data_dir_get()); 368 snprintf(buf, sizeof(buf), "%s/objects/test.edj", elm_app_data_dir_get());
368 efl_file_set(layout, buf, "efl_ui_popup_scroll_content"); 369 efl_file_simple_load(layout, buf, "efl_ui_popup_scroll_content");
369 370
370 efl_content_set(efl_ui_popup, layout); 371 efl_content_set(efl_ui_popup, layout);
371 efl_ui_alert_popup_button_set(efl_ui_popup, EFL_UI_ALERT_POPUP_BUTTON_POSITIVE, "Yes", NULL); 372 efl_ui_alert_popup_button_set(efl_ui_popup, EFL_UI_ALERT_POPUP_BUTTON_POSITIVE, "Yes", NULL);
@@ -386,7 +387,7 @@ _alert_scroll_case1_cb(void *data, const Efl_Event *ev EINA_UNUSED)
386 387
387 Eo *layout = efl_add(EFL_UI_LAYOUT_CLASS, efl_ui_popup); 388 Eo *layout = efl_add(EFL_UI_LAYOUT_CLASS, efl_ui_popup);
388 snprintf(buf, sizeof(buf), "%s/objects/test.edj", elm_app_data_dir_get()); 389 snprintf(buf, sizeof(buf), "%s/objects/test.edj", elm_app_data_dir_get());
389 efl_file_set(layout, buf, "efl_ui_popup_scroll_content"); 390 efl_file_simple_load(layout, buf, "efl_ui_popup_scroll_content");
390 391
391 efl_content_set(efl_ui_popup, layout); 392 efl_content_set(efl_ui_popup, layout);
392 393
@@ -410,7 +411,7 @@ _alert_scroll_case2_cb(void *data, const Efl_Event *ev EINA_UNUSED)
410 411
411 Eo *layout = efl_add(EFL_UI_LAYOUT_CLASS, efl_ui_popup); 412 Eo *layout = efl_add(EFL_UI_LAYOUT_CLASS, efl_ui_popup);
412 snprintf(buf, sizeof(buf), "%s/objects/test.edj", elm_app_data_dir_get()); 413 snprintf(buf, sizeof(buf), "%s/objects/test.edj", elm_app_data_dir_get());
413 efl_file_set(layout, buf, "efl_ui_popup_scroll_content"); 414 efl_file_simple_load(layout, buf, "efl_ui_popup_scroll_content");
414 415
415 efl_content_set(efl_ui_popup, layout); 416 efl_content_set(efl_ui_popup, layout);
416 417
@@ -436,7 +437,7 @@ _alert_scroll_case3_cb(void *data, const Efl_Event *ev EINA_UNUSED)
436 437
437 Eo *layout = efl_add(EFL_UI_LAYOUT_CLASS, efl_ui_popup); 438 Eo *layout = efl_add(EFL_UI_LAYOUT_CLASS, efl_ui_popup);
438 snprintf(buf, sizeof(buf), "%s/objects/test.edj", elm_app_data_dir_get()); 439 snprintf(buf, sizeof(buf), "%s/objects/test.edj", elm_app_data_dir_get());
439 efl_file_set(layout, buf, "efl_ui_popup_scroll_content"); 440 efl_file_simple_load(layout, buf, "efl_ui_popup_scroll_content");
440 441
441 efl_content_set(efl_ui_popup, layout); 442 efl_content_set(efl_ui_popup, layout);
442 443
@@ -462,7 +463,7 @@ _alert_scroll_case4_cb(void *data, const Efl_Event *ev EINA_UNUSED)
462 463
463 Eo *layout = efl_add(EFL_UI_LAYOUT_CLASS, efl_ui_popup); 464 Eo *layout = efl_add(EFL_UI_LAYOUT_CLASS, efl_ui_popup);
464 snprintf(buf, sizeof(buf), "%s/objects/test.edj", elm_app_data_dir_get()); 465 snprintf(buf, sizeof(buf), "%s/objects/test.edj", elm_app_data_dir_get());
465 efl_file_set(layout, buf, "efl_ui_popup_scroll_content"); 466 efl_file_simple_load(layout, buf, "efl_ui_popup_scroll_content");
466 467
467 efl_content_set(efl_ui_popup, layout); 468 efl_content_set(efl_ui_popup, layout);
468 469
@@ -488,7 +489,7 @@ _alert_scroll_case5_cb(void *data, const Efl_Event *ev EINA_UNUSED)
488 489
489 Eo *layout = efl_add(EFL_UI_LAYOUT_CLASS, efl_ui_popup); 490 Eo *layout = efl_add(EFL_UI_LAYOUT_CLASS, efl_ui_popup);
490 snprintf(buf, sizeof(buf), "%s/objects/test.edj", elm_app_data_dir_get()); 491 snprintf(buf, sizeof(buf), "%s/objects/test.edj", elm_app_data_dir_get());
491 efl_file_set(layout, buf, "efl_ui_popup_scroll_content"); 492 efl_file_simple_load(layout, buf, "efl_ui_popup_scroll_content");
492 493
493 efl_content_set(efl_ui_popup, layout); 494 efl_content_set(efl_ui_popup, layout);
494 495
@@ -1008,7 +1009,7 @@ test_ui_anchor_popup(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void
1008 1009
1009 Eo *layout = efl_add(EFL_UI_LAYOUT_CLASS, win); 1010 Eo *layout = efl_add(EFL_UI_LAYOUT_CLASS, win);
1010 snprintf(buf, sizeof(buf), "%s/objects/test.edj", elm_app_data_dir_get()); 1011 snprintf(buf, sizeof(buf), "%s/objects/test.edj", elm_app_data_dir_get());
1011 efl_file_set(layout, buf, "efl_ui_anchor_popup_layout"); 1012 efl_file_simple_load(layout, buf, "efl_ui_anchor_popup_layout");
1012 efl_gfx_hint_weight_set(layout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 1013 efl_gfx_hint_weight_set(layout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
1013 efl_content_set(win, layout); 1014 efl_content_set(win, layout);
1014 1015
diff --git a/src/bin/elementary/test_ui_progressbar.c b/src/bin/elementary/test_ui_progressbar.c
index cbb2fdc..e851769 100644
--- a/src/bin/elementary/test_ui_progressbar.c
+++ b/src/bin/elementary/test_ui_progressbar.c
@@ -1,6 +1,7 @@
1#ifdef HAVE_CONFIG_H 1#ifdef HAVE_CONFIG_H
2# include "elementary_config.h" 2# include "elementary_config.h"
3#endif 3#endif
4#include <Efl_Ui.h>
4#include <Elementary.h> 5#include <Elementary.h>
5 6
6typedef struct _pbdata 7typedef struct _pbdata
@@ -118,7 +119,7 @@ test_ui_progressbar(void *data EINA_UNUSED, Eo *obj EINA_UNUSED, void *event_inf
118 pd = (pbdata *)calloc(1, sizeof(pbdata)); 119 pd = (pbdata *)calloc(1, sizeof(pbdata));
119 120
120 pd->win = win = efl_add_ref(EFL_UI_WIN_CLASS, NULL, 121 pd->win = win = efl_add_ref(EFL_UI_WIN_CLASS, NULL,
121 efl_ui_win_type_set(efl_added, EFL_UI_WIN_BASIC), 122 efl_ui_win_type_set(efl_added, EFL_UI_WIN_TYPE_BASIC),
122 efl_text_set(efl_added, "Efl.Ui.Progressbar"), 123 efl_text_set(efl_added, "Efl.Ui.Progressbar"),
123 efl_ui_win_autodel_set(efl_added, EINA_TRUE), 124 efl_ui_win_autodel_set(efl_added, EINA_TRUE),
124 efl_event_callback_add(efl_added, EFL_UI_WIN_EVENT_DELETE_REQUEST, 125 efl_event_callback_add(efl_added, EFL_UI_WIN_EVENT_DELETE_REQUEST,
@@ -138,7 +139,8 @@ test_ui_progressbar(void *data EINA_UNUSED, Eo *obj EINA_UNUSED, void *event_inf
138 139
139 snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get()); 140 snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
140 efl_add(EFL_UI_IMAGE_CLASS, pd->pb1, 141 efl_add(EFL_UI_IMAGE_CLASS, pd->pb1,
141 efl_file_set(efl_added, buf, NULL), 142 efl_file_set(efl_added, buf),
143 efl_file_load(efl_added),
142 efl_content_set(pd->pb1, efl_added) 144 efl_content_set(pd->pb1, efl_added)
143 ); 145 );
144 146
diff --git a/src/bin/elementary/test_ui_relative_layout.c b/src/bin/elementary/test_ui_relative_layout.c
index 24546ca..e6481ec 100644
--- a/src/bin/elementary/test_ui_relative_layout.c
+++ b/src/bin/elementary/test_ui_relative_layout.c
@@ -3,6 +3,7 @@
3# include "elementary_config.h" 3# include "elementary_config.h"
4#endif 4#endif
5 5
6#include <Efl_Ui.h>
6#include <Elementary.h> 7#include <Elementary.h>
7 8
8static Eo *layout, *btn1, *btn2, *btn3; 9static Eo *layout, *btn1, *btn2, *btn3;
@@ -264,7 +265,7 @@ test_ui_relative_layout(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, vo
264 Eo *win, *vbox, *f, *hbox; 265 Eo *win, *vbox, *f, *hbox;
265 266
266 win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(), 267 win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(),
267 efl_ui_win_type_set(efl_added, EFL_UI_WIN_BASIC), 268 efl_ui_win_type_set(efl_added, EFL_UI_WIN_TYPE_BASIC),
268 efl_text_set(efl_added, "Efl.Ui.Relative_Layout"), 269 efl_text_set(efl_added, "Efl.Ui.Relative_Layout"),
269 efl_ui_win_autodel_set(efl_added, EINA_TRUE)); 270 efl_ui_win_autodel_set(efl_added, EINA_TRUE));
270 271
diff --git a/src/bin/elementary/test_ui_scroller.c b/src/bin/elementary/test_ui_scroller.c
index 3a43a43..9864e77 100644
--- a/src/bin/elementary/test_ui_scroller.c
+++ b/src/bin/elementary/test_ui_scroller.c
@@ -2,6 +2,7 @@
2# include "elementary_config.h" 2# include "elementary_config.h"
3#endif 3#endif
4 4
5#include <Efl_Ui.h>
5#include <Elementary.h> 6#include <Elementary.h>
6 7
7static void 8static void
@@ -31,7 +32,7 @@ test_efl_ui_scroller(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void
31 int i, j; 32 int i, j;
32 33
33 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL, 34 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL,
34 efl_ui_win_type_set(efl_added, EFL_UI_WIN_BASIC), 35 efl_ui_win_type_set(efl_added, EFL_UI_WIN_TYPE_BASIC),
35 efl_text_set(efl_added, "Efl Ui Scroller"), 36 efl_text_set(efl_added, "Efl Ui Scroller"),
36 efl_ui_win_autodel_set(efl_added, EINA_TRUE)); 37 efl_ui_win_autodel_set(efl_added, EINA_TRUE));
37 efl_gfx_entity_size_set(win, EINA_SIZE2D(320, 400)); 38 efl_gfx_entity_size_set(win, EINA_SIZE2D(320, 400));
diff --git a/src/bin/elementary/test_ui_slider.c b/src/bin/elementary/test_ui_slider.c
index 66bfe0f..305177f 100644
--- a/src/bin/elementary/test_ui_slider.c
+++ b/src/bin/elementary/test_ui_slider.c
@@ -1,6 +1,7 @@
1#ifdef HAVE_CONFIG_H 1#ifdef HAVE_CONFIG_H
2# include "elementary_config.h" 2# include "elementary_config.h"
3#endif 3#endif
4#include <Efl_Ui.h>
4#include <Elementary.h> 5#include <Elementary.h>
5 6
6static double 7static double
@@ -33,7 +34,7 @@ test_ui_slider(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event
33 double step; 34 double step;
34 35
35 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL, 36 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL,
36 efl_ui_win_type_set(efl_added, EFL_UI_WIN_BASIC), 37 efl_ui_win_type_set(efl_added, EFL_UI_WIN_TYPE_BASIC),
37 efl_text_set(efl_added, "Efl.Ui.Slider"), 38 efl_text_set(efl_added, "Efl.Ui.Slider"),
38 efl_ui_win_autodel_set(efl_added, EINA_TRUE)); 39 efl_ui_win_autodel_set(efl_added, EINA_TRUE));
39 40
diff --git a/src/bin/elementary/test_ui_slider_interval.c b/src/bin/elementary/test_ui_slider_interval.c
index 09589a7..3e4bdcd 100644
--- a/src/bin/elementary/test_ui_slider_interval.c
+++ b/src/bin/elementary/test_ui_slider_interval.c
@@ -1,6 +1,7 @@
1#ifdef HAVE_CONFIG_H 1#ifdef HAVE_CONFIG_H
2# include "elementary_config.h" 2# include "elementary_config.h"
3#endif 3#endif
4#include <Efl_Ui.h>
4#include <Elementary.h> 5#include <Elementary.h>
5 6
6static double 7static double
@@ -33,7 +34,7 @@ test_slider_interval(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void
33 double step; 34 double step;
34 35
35 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL, 36 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL,
36 efl_ui_win_type_set(efl_added, EFL_UI_WIN_BASIC), 37 efl_ui_win_type_set(efl_added, EFL_UI_WIN_TYPE_BASIC),
37 efl_text_set(efl_added, "Efl.Ui.Slider_Interval"), 38 efl_text_set(efl_added, "Efl.Ui.Slider_Interval"),
38 efl_ui_win_autodel_set(efl_added, EINA_TRUE)); 39 efl_ui_win_autodel_set(efl_added, EINA_TRUE));
39 40
diff --git a/src/bin/elementary/test_ui_spin.c b/src/bin/elementary/test_ui_spin.c
index 85945a3..7c60606 100644
--- a/src/bin/elementary/test_ui_spin.c
+++ b/src/bin/elementary/test_ui_spin.c
@@ -1,6 +1,7 @@
1#ifdef HAVE_CONFIG_H 1#ifdef HAVE_CONFIG_H
2# include "elementary_config.h" 2# include "elementary_config.h"
3#endif 3#endif
4#include <Efl_Ui.h>
4#include <Elementary.h> 5#include <Elementary.h>
5 6
6static void 7static void
@@ -37,7 +38,7 @@ test_ui_spin(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_i
37 Eo *win, *bx, *sp; 38 Eo *win, *bx, *sp;
38 39
39 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL, 40 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL,
40 efl_ui_win_type_set(efl_added, EFL_UI_WIN_BASIC), 41 efl_ui_win_type_set(efl_added, EFL_UI_WIN_TYPE_BASIC),
41 efl_text_set(efl_added, "Efl.Ui.Spin"), 42 efl_text_set(efl_added, "Efl.Ui.Spin"),
42 efl_ui_win_autodel_set(efl_added, EINA_TRUE)); 43 efl_ui_win_autodel_set(efl_added, EINA_TRUE));
43 44
diff --git a/src/bin/elementary/test_ui_spin_button.c b/src/bin/elementary/test_ui_spin_button.c
index 0e00820..b6e4381 100644
--- a/src/bin/elementary/test_ui_spin_button.c
+++ b/src/bin/elementary/test_ui_spin_button.c
@@ -1,6 +1,7 @@
1#ifdef HAVE_CONFIG_H 1#ifdef HAVE_CONFIG_H
2# include "elementary_config.h" 2# include "elementary_config.h"
3#endif 3#endif
4#include <Efl_Ui.h>
4#include <Elementary.h> 5#include <Elementary.h>
5 6
6#define NUM_OF_VALS 12 7#define NUM_OF_VALS 12
@@ -28,7 +29,7 @@ test_ui_spin_button(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *
28 eina_array_push(array, &values[i]); 29 eina_array_push(array, &values[i]);
29 30
30 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL, 31 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL,
31 efl_ui_win_type_set(efl_added, EFL_UI_WIN_BASIC), 32 efl_ui_win_type_set(efl_added, EFL_UI_WIN_TYPE_BASIC),
32 efl_text_set(efl_added, "Efl.Ui.Spin_Button"), 33 efl_text_set(efl_added, "Efl.Ui.Spin_Button"),
33 efl_ui_win_autodel_set(efl_added, EINA_TRUE)); 34 efl_ui_win_autodel_set(efl_added, EINA_TRUE));
34 35
diff --git a/src/bin/elementary/test_ui_stack.c b/src/bin/elementary/test_ui_stack.c
index 1cb3041..087e51f 100644
--- a/src/bin/elementary/test_ui_stack.c
+++ b/src/bin/elementary/test_ui_stack.c
@@ -2,6 +2,7 @@
2# include "elementary_config.h" 2# include "elementary_config.h"
3#endif 3#endif
4 4
5#include <Efl_Ui.h>
5#include <Elementary.h> 6#include <Elementary.h>
6 7
7static void _third_layout_push(void *data, const Efl_Event *ev EINA_UNUSED); 8static void _third_layout_push(void *data, const Efl_Event *ev EINA_UNUSED);
diff --git a/src/bin/elementary/test_ui_tab_pager.c b/src/bin/elementary/test_ui_tab_pager.c
index 318e019..ef8ccae 100644
--- a/src/bin/elementary/test_ui_tab_pager.c
+++ b/src/bin/elementary/test_ui_tab_pager.c
@@ -1,6 +1,7 @@
1#ifdef HAVE_CONFIG_H 1#ifdef HAVE_CONFIG_H
2# include "elementary_config.h" 2# include "elementary_config.h"
3#endif 3#endif
4#include <Efl_Ui.h>
4#include <Elementary.h> 5#include <Elementary.h>
5 6
6#define TAB_LABEL_COUNT 15 7#define TAB_LABEL_COUNT 15
@@ -86,7 +87,8 @@ content_add(Eo *parent, char *text)
86 snprintf(buf, sizeof(buf), "%s/objects/test_tab_pager.edj", elm_app_data_dir_get()); 87 snprintf(buf, sizeof(buf), "%s/objects/test_tab_pager.edj", elm_app_data_dir_get());
87 88
88 page = efl_add(EFL_UI_LAYOUT_CLASS, parent, 89 page = efl_add(EFL_UI_LAYOUT_CLASS, parent,
89 efl_file_set(efl_added, buf, "page_layout"), 90 efl_file_set(efl_added, buf),
91 efl_file_key_set(efl_added, "page_layout"),
90 efl_text_set(efl_part(efl_added, "text"), text), 92 efl_text_set(efl_part(efl_added, "text"), text),
91 efl_gfx_hint_weight_set(efl_added, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND), 93 efl_gfx_hint_weight_set(efl_added, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND),
92 efl_gfx_hint_fill_set(efl_added, EINA_TRUE, EINA_TRUE)); 94 efl_gfx_hint_fill_set(efl_added, EINA_TRUE, EINA_TRUE));
@@ -122,14 +124,15 @@ test_ui_tab_pager(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *ev
122 int i; 124 int i;
123 125
124 win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(), 126 win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(),
125 efl_ui_win_type_set(efl_added, EFL_UI_WIN_BASIC), 127 efl_ui_win_type_set(efl_added, EFL_UI_WIN_TYPE_BASIC),
126 efl_text_set(efl_added, "Efl.Ui.Tab_Pager"), 128 efl_text_set(efl_added, "Efl.Ui.Tab_Pager"),
127 efl_ui_win_autodel_set(efl_added, EINA_TRUE), 129 efl_ui_win_autodel_set(efl_added, EINA_TRUE),
128 efl_event_callback_add(efl_added, EFL_EVENT_DEL, _win_del_cb, ad)); 130 efl_event_callback_add(efl_added, EFL_EVENT_DEL, _win_del_cb, ad));
129 131
130 snprintf(buf, sizeof(buf), "%s/objects/test_tab_pager.edj", elm_app_data_dir_get()); 132 snprintf(buf, sizeof(buf), "%s/objects/test_tab_pager.edj", elm_app_data_dir_get());
131 layout = efl_add(EFL_UI_LAYOUT_CLASS, win, 133 layout = efl_add(EFL_UI_LAYOUT_CLASS, win,
132 efl_file_set(efl_added, buf, "tab_page_layout"), 134 efl_file_set(efl_added, buf),
135 efl_file_key_set(efl_added, "tab_page_layout"),
133 efl_content_set(win, efl_added)); 136 efl_content_set(win, efl_added));
134 137
135 navi = elm_naviframe_add(layout); 138 navi = elm_naviframe_add(layout);
diff --git a/src/bin/elementary/test_ui_table.c b/src/bin/elementary/test_ui_table.c
index 098fe13..f0e63d2 100644
--- a/src/bin/elementary/test_ui_table.c
+++ b/src/bin/elementary/test_ui_table.c
@@ -3,6 +3,7 @@
3#endif 3#endif
4 4
5#define EFL_PACK_LAYOUT_PROTECTED 5#define EFL_PACK_LAYOUT_PROTECTED
6#include <Efl_Ui.h>
6#include <Elementary.h> 7#include <Elementary.h>
7 8
8static void _custom_layout_update(Eo *pack, void *_pd EINA_UNUSED); 9static void _custom_layout_update(Eo *pack, void *_pd EINA_UNUSED);
@@ -34,31 +35,31 @@ weights_cb(void *data, const Efl_Event *event)
34 { 35 {
35 case NONE: 36 case NONE:
36 efl_gfx_hint_align_set(table, 0.5, 0.5); 37 efl_gfx_hint_align_set(table, 0.5, 0.5);
37 for (int i = 0; i < 7; i++) 38 for (int i = 1; i < 7; i++)
38 efl_gfx_hint_weight_set(objects[i], 0, 0); 39 efl_gfx_hint_weight_set(objects[i], 0, 0);
39 break; 40 break;
40 case NONE_BUT_FILL: 41 case NONE_BUT_FILL:
41 efl_gfx_hint_fill_set(table, EINA_TRUE, EINA_TRUE); 42 efl_gfx_hint_fill_set(table, EINA_TRUE, EINA_TRUE);
42 for (int i = 0; i < 7; i++) 43 for (int i = 1; i < 7; i++)
43 efl_gfx_hint_weight_set(objects[i], 0, 0); 44 efl_gfx_hint_weight_set(objects[i], 0, 0);
44 break; 45 break;
45 case EQUAL: 46 case EQUAL:
46 efl_gfx_hint_align_set(table, 0.5, 0.5); 47 efl_gfx_hint_align_set(table, 0.5, 0.5);
47 for (int i = 0; i < 7; i++) 48 for (int i = 1; i < 7; i++)
48 efl_gfx_hint_weight_set(objects[i], 1, 1); 49 efl_gfx_hint_weight_set(objects[i], 1, 1);
49 break; 50 break;
50 case ONE: 51 case ONE:
51 efl_gfx_hint_align_set(table, 0.5, 0.5); 52 efl_gfx_hint_align_set(table, 0.5, 0.5);
52 for (int i = 0; i < 6; i++) 53 for (int i = 1; i < 7; i++)
53 efl_gfx_hint_weight_set(objects[i], 0, 0); 54 efl_gfx_hint_weight_set(objects[i], 0, 0);
54 efl_gfx_hint_weight_set(objects[6], 1, 1); 55 efl_gfx_hint_weight_set(objects[2], 1, 1);
55 break; 56 break;
56 case TWO: 57 case TWO:
57 efl_gfx_hint_align_set(table, 0.5, 0.5); 58 efl_gfx_hint_align_set(table, 0.5, 0.5);
58 for (int i = 0; i < 5; i++) 59 for (int i = 1; i < 7; i++)
59 efl_gfx_hint_weight_set(objects[i], 0, 0); 60 efl_gfx_hint_weight_set(objects[i], 0, 0);
60 efl_gfx_hint_weight_set(objects[5], 1, 1); 61 efl_gfx_hint_weight_set(objects[2], 1, 1);
61 efl_gfx_hint_weight_set(objects[6], 1, 1); 62 efl_gfx_hint_weight_set(objects[3], 1, 1);
62 break; 63 break;
63 case CUSTOM: 64 case CUSTOM:
64 efl_object_override(table, &custom_layout_ops); 65 efl_object_override(table, &custom_layout_ops);
@@ -89,11 +90,11 @@ margin_slider_cb(void *data, const Efl_Event *event)
89} 90}
90 91
91static void 92static void
92btnmargins_slider_cb(void *data, const Efl_Event *event) 93btnmargins_slider_cb(void *data EINA_UNUSED, const Efl_Event *event)
93{ 94{
94 int val = elm_slider_value_get(event->object); 95 int val = elm_slider_value_get(event->object);
95 for (int i = 1; i < 7; i++) 96 for (int i = 1; i < 7; i++)
96 efl_gfx_hint_margin_set(data, val, val, val, val); 97 efl_gfx_hint_margin_set(objects[i], val, val, val, val);
97} 98}
98 99
99static void 100static void
@@ -333,7 +334,7 @@ test_ui_table(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_
333 efl_event_callback_add(o, EFL_UI_SLIDER_EVENT_CHANGED, padding_slider_cb, table); 334 efl_event_callback_add(o, EFL_UI_SLIDER_EVENT_CHANGED, padding_slider_cb, table);
334 elm_slider_min_max_set(o, 0, 40); 335 elm_slider_min_max_set(o, 0, 40);
335 elm_slider_inverted_set(o, 1); 336 elm_slider_inverted_set(o, 1);
336 elm_slider_value_set(o, 10); 337 elm_slider_value_set(o, 0);
337 efl_pack(bx, o); 338 efl_pack(bx, o);
338 efl_gfx_entity_visible_set(o, 1); 339 efl_gfx_entity_visible_set(o, 1);
339 340
@@ -359,7 +360,7 @@ test_ui_table(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_
359 efl_event_callback_add(o, EFL_UI_SLIDER_EVENT_CHANGED, margin_slider_cb, table); 360 efl_event_callback_add(o, EFL_UI_SLIDER_EVENT_CHANGED, margin_slider_cb, table);
360 elm_slider_min_max_set(o, 0, 40); 361 elm_slider_min_max_set(o, 0, 40);
361 elm_slider_inverted_set(o, 1); 362 elm_slider_inverted_set(o, 1);
362 elm_slider_value_set(o, 10); 363 elm_slider_value_set(o, 0);
363 efl_pack(bx, o); 364 efl_pack(bx, o);
364 efl_gfx_entity_visible_set(o, 1); 365 efl_gfx_entity_visible_set(o, 1);
365 366
@@ -386,7 +387,7 @@ test_ui_table(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_
386 efl_event_callback_add(o, EFL_UI_SLIDER_EVENT_CHANGED, btnmargins_slider_cb, table); 387 efl_event_callback_add(o, EFL_UI_SLIDER_EVENT_CHANGED, btnmargins_slider_cb, table);
387 elm_slider_min_max_set(o, 0, 40); 388 elm_slider_min_max_set(o, 0, 40);
388 elm_slider_inverted_set(o, 1); 389 elm_slider_inverted_set(o, 1);
389 elm_slider_value_set(o, 10); 390 elm_slider_value_set(o, 0);
390 efl_pack(bx, o); 391 efl_pack(bx, o);
391 efl_gfx_entity_visible_set(o, 1); 392 efl_gfx_entity_visible_set(o, 1);
392 393
diff --git a/src/bin/elementary/test_ui_table_static.c b/src/bin/elementary/test_ui_table_static.c
index 369236f..d21d6b6c 100644
--- a/src/bin/elementary/test_ui_table_static.c
+++ b/src/bin/elementary/test_ui_table_static.c
@@ -2,6 +2,7 @@
2# include "elementary_config.h" 2# include "elementary_config.h"
3#endif 3#endif
4 4
5#include <Efl_Ui.h>
5#include <Elementary.h> 6#include <Elementary.h>
6 7
7struct _Api_Data 8struct _Api_Data
diff --git a/src/bin/elementary/test_ui_tags.c b/src/bin/elementary/test_ui_tags.c
index 2c8b3e6..410c7b2 100644
--- a/src/bin/elementary/test_ui_tags.c
+++ b/src/bin/elementary/test_ui_tags.c
@@ -1,6 +1,7 @@
1#ifdef HAVE_CONFIG_H 1#ifdef HAVE_CONFIG_H
2# include "elementary_config.h" 2# include "elementary_config.h"
3#endif 3#endif
4#include <Efl_Ui.h>
4#include <Elementary.h> 5#include <Elementary.h>
5 6
6static void 7static void
@@ -59,7 +60,7 @@ test_ui_tags(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_i
59 char buf[PATH_MAX]; 60 char buf[PATH_MAX];
60 61
61 win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(), 62 win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(),
62 efl_ui_win_type_set(efl_added, EFL_UI_WIN_BASIC), 63 efl_ui_win_type_set(efl_added, EFL_UI_WIN_TYPE_BASIC),
63 efl_text_set(efl_added, "Efl.Ui.Tags"), 64 efl_text_set(efl_added, "Efl.Ui.Tags"),
64 efl_ui_win_autodel_set(efl_added, EINA_TRUE)); 65 efl_ui_win_autodel_set(efl_added, EINA_TRUE));
65 66
diff --git a/src/bin/elementary/test_ui_textpath.c b/src/bin/elementary/test_ui_textpath.c
index 2f5542a..0042f2b 100644
--- a/src/bin/elementary/test_ui_textpath.c
+++ b/src/bin/elementary/test_ui_textpath.c
@@ -3,6 +3,7 @@
3# include "elementary_config.h" 3# include "elementary_config.h"
4#endif 4#endif
5 5
6#include <Efl_Ui.h>
6#include <Elementary.h> 7#include <Elementary.h>
7 8
8#define CX 180 9#define CX 180
diff --git a/src/bin/elementary/test_ui_timepicker.c b/src/bin/elementary/test_ui_timepicker.c
index cb88ef5..60464d0 100644
--- a/src/bin/elementary/test_ui_timepicker.c
+++ b/src/bin/elementary/test_ui_timepicker.c
@@ -1,6 +1,7 @@
1#ifdef HAVE_CONFIG_H 1#ifdef HAVE_CONFIG_H
2# include "elementary_config.h" 2# include "elementary_config.h"
3#endif 3#endif
4#include <Efl_Ui.h>
4#include <Elementary.h> 5#include <Elementary.h>
5 6
6static void 7static void
@@ -19,7 +20,7 @@ test_ui_timepicker(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *e
19 Eo *win, *bx; 20 Eo *win, *bx;
20 21
21 win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(), 22 win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(),
22 efl_ui_win_type_set(efl_added, EFL_UI_WIN_BASIC), 23 efl_ui_win_type_set(efl_added, EFL_UI_WIN_TYPE_BASIC),
23 efl_text_set(efl_added, "Efl.Ui.Timepicker"), 24 efl_text_set(efl_added, "Efl.Ui.Timepicker"),
24 efl_ui_win_autodel_set(efl_added, EINA_TRUE)); 25 efl_ui_win_autodel_set(efl_added, EINA_TRUE));
25 26
diff --git a/src/bin/elementary/test_win_dialog.c b/src/bin/elementary/test_win_dialog.c
index 1aaa844..ef8a67b 100644
--- a/src/bin/elementary/test_win_dialog.c
+++ b/src/bin/elementary/test_win_dialog.c
@@ -1,6 +1,7 @@
1#ifdef HAVE_CONFIG_H 1#ifdef HAVE_CONFIG_H
2# include "elementary_config.h" 2# include "elementary_config.h"
3#endif 3#endif
4#include <Efl_Ui.h>
4#include <Elementary.h> 5#include <Elementary.h>
5 6
6static void 7static void
@@ -29,7 +30,7 @@ _bt2_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_
29 Eina_Size2D size = { 300, 150 }; 30 Eina_Size2D size = { 300, 150 };
30 31
31 dia = efl_add(EFL_UI_WIN_CLASS, parent, 32 dia = efl_add(EFL_UI_WIN_CLASS, parent,
32 efl_ui_win_type_set(efl_added, EFL_UI_WIN_DIALOG_BASIC), 33 efl_ui_win_type_set(efl_added, EFL_UI_WIN_TYPE_DIALOG_BASIC),
33 efl_ui_win_name_set(efl_added, "window-dia-2"), 34 efl_ui_win_name_set(efl_added, "window-dia-2"),
34 efl_ui_win_autodel_set(efl_added, EINA_TRUE), 35 efl_ui_win_autodel_set(efl_added, EINA_TRUE),
35 efl_text_set(efl_added, "A Fixed Size Dialog")); 36 efl_text_set(efl_added, "A Fixed Size Dialog"));
@@ -76,7 +77,7 @@ _bt3_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_
76 Efl_Canvas_Object *dia, *lb, *parent = data; 77 Efl_Canvas_Object *dia, *lb, *parent = data;
77 78
78 dia = efl_add(EFL_UI_WIN_CLASS, parent, 79 dia = efl_add(EFL_UI_WIN_CLASS, parent,
79 efl_ui_win_type_set(efl_added, EFL_UI_WIN_DIALOG_BASIC), 80 efl_ui_win_type_set(efl_added, EFL_UI_WIN_TYPE_DIALOG_BASIC),
80 efl_ui_win_name_set(efl_added, "window-dia-3"), 81 efl_ui_win_name_set(efl_added, "window-dia-3"),
81 efl_ui_win_autodel_set(efl_added, EINA_TRUE), 82 efl_ui_win_autodel_set(efl_added, EINA_TRUE),
82 efl_text_set(efl_added, "Min/Max Size Dialog")); 83 efl_text_set(efl_added, "Min/Max Size Dialog"));
@@ -102,7 +103,7 @@ _bt4_clicked_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *even
102 Efl_Canvas_Object *dia, *lb; 103 Efl_Canvas_Object *dia, *lb;
103 104
104 dia = efl_add_ref(EFL_UI_WIN_CLASS, NULL, 105 dia = efl_add_ref(EFL_UI_WIN_CLASS, NULL,
105 efl_ui_win_type_set(efl_added, EFL_UI_WIN_DIALOG_BASIC), 106 efl_ui_win_type_set(efl_added, EFL_UI_WIN_TYPE_DIALOG_BASIC),
106 efl_ui_win_name_set(efl_added, "window-dia-4"), 107 efl_ui_win_name_set(efl_added, "window-dia-4"),
107 efl_ui_win_autodel_set(efl_added, EINA_TRUE), 108 efl_ui_win_autodel_set(efl_added, EINA_TRUE),
108 efl_text_set(efl_added, "Min/Max Size Dialog") 109 efl_text_set(efl_added, "Min/Max Size Dialog")
diff --git a/src/bin/elementary/test_win_indicator.c b/src/bin/elementary/test_win_indicator.c
index 1b72b0d..0ebb30b 100644
--- a/src/bin/elementary/test_win_indicator.c
+++ b/src/bin/elementary/test_win_indicator.c
@@ -1,6 +1,7 @@
1#ifdef HAVE_CONFIG_H 1#ifdef HAVE_CONFIG_H
2# include "elementary_config.h" 2# include "elementary_config.h"
3#endif 3#endif
4#include <Efl_Ui.h>
4#include <Elementary.h> 5#include <Elementary.h>
5 6
6static void 7static void
@@ -56,25 +57,25 @@ _create_indicator(void)
56static void 57static void
57_off_clicked(void *data, const Efl_Event *ev EINA_UNUSED) 58_off_clicked(void *data, const Efl_Event *ev EINA_UNUSED)
58{ 59{
59 efl_ui_win_indicator_mode_set(data, EFL_UI_WIN_INDICATOR_OFF); 60 efl_ui_win_indicator_mode_set(data, EFL_UI_WIN_INDICATOR_MODE_OFF);
60} 61}
61 62
62static void 63static void
63_opaque_clicked(void *data, const Efl_Event *ev EINA_UNUSED) 64_opaque_clicked(void *data, const Efl_Event *ev EINA_UNUSED)
64{ 65{
65 efl_ui_win_indicator_mode_set(data, EFL_UI_WIN_INDICATOR_BG_OPAQUE); 66 efl_ui_win_indicator_mode_set(data, EFL_UI_WIN_INDICATOR_MODE_BG_OPAQUE);
66} 67}
67 68
68static void 69static void
69_transparent_clicked(void *data, const Efl_Event *ev EINA_UNUSED) 70_transparent_clicked(void *data, const Efl_Event *ev EINA_UNUSED)
70{ 71{
71 efl_ui_win_indicator_mode_set(data, EFL_UI_WIN_INDICATOR_BG_TRANSPARENT); 72 efl_ui_win_indicator_mode_set(data, EFL_UI_WIN_INDICATOR_MODE_BG_TRANSPARENT);
72} 73}
73 74
74static void 75static void
75_hidden_clicked(void *data, const Efl_Event *ev EINA_UNUSED) 76_hidden_clicked(void *data, const Efl_Event *ev EINA_UNUSED)
76{ 77{
77 efl_ui_win_indicator_mode_set(data, EFL_UI_WIN_INDICATOR_HIDDEN); 78 efl_ui_win_indicator_mode_set(data, EFL_UI_WIN_INDICATOR_MODE_HIDDEN);
78} 79}
79 80
80static void 81static void
@@ -92,7 +93,7 @@ test_win_indicator(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *e
92 93
93 // FIXME: Resizing window should no cause sizing issues! 94 // FIXME: Resizing window should no cause sizing issues!
94 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL, 95 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL,
95 efl_ui_win_type_set(efl_added, EFL_UI_WIN_BASIC), 96 efl_ui_win_type_set(efl_added, EFL_UI_WIN_TYPE_BASIC),
96 efl_text_set(efl_added, "Efl.Win.Indicator"), 97 efl_text_set(efl_added, "Efl.Win.Indicator"),
97 efl_gfx_hint_size_max_set(efl_added, EINA_SIZE2D(300, -1)), 98 efl_gfx_hint_size_max_set(efl_added, EINA_SIZE2D(300, -1)),
98 efl_ui_win_autodel_set(efl_added, EINA_TRUE)); 99 efl_ui_win_autodel_set(efl_added, EINA_TRUE));
diff --git a/src/bin/elementary/test_win_inline.c b/src/bin/elementary/test_win_inline.c
index ea93f0b..122f2d4 100644
--- a/src/bin/elementary/test_win_inline.c
+++ b/src/bin/elementary/test_win_inline.c
@@ -1,6 +1,7 @@
1#ifdef HAVE_CONFIG_H 1#ifdef HAVE_CONFIG_H
2# include "elementary_config.h" 2# include "elementary_config.h"
3#endif 3#endif
4#include <Efl_Ui.h>
4#include <Elementary.h> 5#include <Elementary.h>
5 6
6static void 7static void
diff --git a/src/bin/elementary/test_win_plug.c b/src/bin/elementary/test_win_plug.c
index 867e5c4..615e6fa 100644
--- a/src/bin/elementary/test_win_plug.c
+++ b/src/bin/elementary/test_win_plug.c
@@ -4,7 +4,7 @@
4 4
5#include <Elementary.h> 5#include <Elementary.h>
6// FIXME: use smart cb 6// FIXME: use smart cb
7#include "elm_notify.eo.h" 7#include "elm_notify_eo.h"
8 8
9#define MAX_TRY 40 9#define MAX_TRY 40
10 10
diff --git a/src/bin/elementary/test_win_stack.c b/src/bin/elementary/test_win_stack.c
index d13072d..c16c07b 100644
--- a/src/bin/elementary/test_win_stack.c
+++ b/src/bin/elementary/test_win_stack.c
@@ -4,6 +4,7 @@
4 4
5// Stack API is still beta (and EO only) 5// Stack API is still beta (and EO only)
6#define EFL_UI_WIN_BETA 6#define EFL_UI_WIN_BETA
7#include <Efl_Ui.h>
7#include <Elementary.h> 8#include <Elementary.h>
8 9
9static int level = 0; 10static int level = 0;
@@ -20,13 +21,13 @@ _win_new(Evas_Object *stack_top, const char *title)
20 if (level >= 3) 21 if (level >= 3)
21 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL, 22 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL,
22 efl_ui_win_name_set(efl_added, "window-stack"), 23 efl_ui_win_name_set(efl_added, "window-stack"),
23 efl_ui_win_type_set(efl_added, ELM_WIN_NAVIFRAME_BASIC), 24 efl_ui_win_type_set(efl_added, EFL_UI_WIN_TYPE_NAVIFRAME_BASIC),
24 efl_text_set(efl_added, title), 25 efl_text_set(efl_added, title),
25 efl_ui_win_autodel_set(efl_added, EINA_TRUE)); 26 efl_ui_win_autodel_set(efl_added, EINA_TRUE));
26 else 27 else
27 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL, 28 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL,
28 efl_ui_win_name_set(efl_added, "window-stack"), 29 efl_ui_win_name_set(efl_added, "window-stack"),
29 efl_ui_win_type_set(efl_added, ELM_WIN_DIALOG_BASIC), 30 efl_ui_win_type_set(efl_added, EFL_UI_WIN_TYPE_DIALOG_BASIC),
30 efl_text_set(efl_added, title), 31 efl_text_set(efl_added, title),
31 efl_ui_win_autodel_set(efl_added, EINA_TRUE)); 32 efl_ui_win_autodel_set(efl_added, EINA_TRUE));
32 33
diff --git a/src/bin/elementary/test_win_state.c b/src/bin/elementary/test_win_state.c
index b4d084e..f1b9af3 100644
--- a/src/bin/elementary/test_win_state.c
+++ b/src/bin/elementary/test_win_state.c
@@ -263,39 +263,39 @@ _bt_pressed(void *data, Evas_Object *obj, void *event_info EINA_UNUSED)
263 { 263 {
264 case 1: 264 case 1:
265 printf("Top Left\n"); 265 printf("Top Left\n");
266 res = elm_win_move_resize_start(win, EFL_UI_WIN_MOVE_RESIZE_TOP | EFL_UI_WIN_MOVE_RESIZE_LEFT); 266 res = elm_win_move_resize_start(win, ELM_WIN_MOVE_RESIZE_TOP | ELM_WIN_MOVE_RESIZE_LEFT);
267 break; 267 break;
268 case 2: 268 case 2:
269 printf("Top\n"); 269 printf("Top\n");
270 res = elm_win_move_resize_start(win, EFL_UI_WIN_MOVE_RESIZE_TOP); 270 res = elm_win_move_resize_start(win, ELM_WIN_MOVE_RESIZE_TOP);
271 break; 271 break;
272 case 3: 272 case 3:
273 printf("Top Right\n"); 273 printf("Top Right\n");
274 res = elm_win_move_resize_start(win, EFL_UI_WIN_MOVE_RESIZE_TOP | EFL_UI_WIN_MOVE_RESIZE_RIGHT); 274 res = elm_win_move_resize_start(win, ELM_WIN_MOVE_RESIZE_TOP | ELM_WIN_MOVE_RESIZE_RIGHT);
275 break; 275 break;
276 case 4: 276 case 4:
277 printf("Left\n"); 277 printf("Left\n");
278 res = elm_win_move_resize_start(win, EFL_UI_WIN_MOVE_RESIZE_LEFT); 278 res = elm_win_move_resize_start(win, ELM_WIN_MOVE_RESIZE_LEFT);
279 break; 279 break;
280 case 5: 280 case 5:
281 printf("Move win\n"); 281 printf("Move win\n");
282 res = elm_win_move_resize_start(win, EFL_UI_WIN_MOVE_RESIZE_MOVE); 282 res = elm_win_move_resize_start(win, ELM_WIN_MOVE_RESIZE_MOVE);
283 break; 283 break;
284 case 6: 284 case 6:
285 printf("Right\n"); 285 printf("Right\n");
286 res = elm_win_move_resize_start(win, EFL_UI_WIN_MOVE_RESIZE_RIGHT); 286 res = elm_win_move_resize_start(win, ELM_WIN_MOVE_RESIZE_RIGHT);
287 break; 287 break;
288 case 7: 288 case 7:
289 printf("Bottom Left\n"); 289 printf("Bottom Left\n");
290 res = elm_win_move_resize_start(win, EFL_UI_WIN_MOVE_RESIZE_BOTTOM | EFL_UI_WIN_MOVE_RESIZE_LEFT); 290 res = elm_win_move_resize_start(win, ELM_WIN_MOVE_RESIZE_BOTTOM | ELM_WIN_MOVE_RESIZE_LEFT);
291 break; 291 break;
292 case 8: 292 case 8:
293 printf("Bottom\n"); 293 printf("Bottom\n");
294 res = elm_win_move_resize_start(win, EFL_UI_WIN_MOVE_RESIZE_BOTTOM); 294 res = elm_win_move_resize_start(win, ELM_WIN_MOVE_RESIZE_BOTTOM);
295 break; 295 break;
296 case 9: 296 case 9:
297 printf("Bottom Right\n"); 297 printf("Bottom Right\n");
298 res = elm_win_move_resize_start(win, EFL_UI_WIN_MOVE_RESIZE_BOTTOM | EFL_UI_WIN_MOVE_RESIZE_RIGHT); 298 res = elm_win_move_resize_start(win, ELM_WIN_MOVE_RESIZE_BOTTOM | ELM_WIN_MOVE_RESIZE_RIGHT);
299 break; 299 break;
300 default: 300 default:
301 printf("No action\n"); 301 printf("No action\n");