summaryrefslogtreecommitdiff
path: root/src/bin/elementary
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/elementary')
-rw-r--r--src/bin/elementary/test_bg.c4
-rw-r--r--src/bin/elementary/test_box.c2
-rw-r--r--src/bin/elementary/test_calendar.c2
-rw-r--r--src/bin/elementary/test_efl_gfx_map.c2
-rw-r--r--src/bin/elementary/test_evas_map.c2
-rw-r--r--src/bin/elementary/test_evas_mask.c2
-rw-r--r--src/bin/elementary/test_evas_snapshot.c2
-rw-r--r--src/bin/elementary/test_gfx_filters.c2
-rw-r--r--src/bin/elementary/test_glview.c2
-rw-r--r--src/bin/elementary/test_nstate.c2
-rw-r--r--src/bin/elementary/test_part_bg.c2
-rw-r--r--src/bin/elementary/test_part_shadow.c4
-rw-r--r--src/bin/elementary/test_photocam.c2
-rw-r--r--src/bin/elementary/test_ui_button.c2
-rw-r--r--src/bin/elementary/test_ui_clock.c2
-rw-r--r--src/bin/elementary/test_ui_panes.c2
-rw-r--r--src/bin/elementary/test_ui_popup.c16
-rw-r--r--src/bin/elementary/test_ui_progressbar.c4
-rw-r--r--src/bin/elementary/test_ui_scroller.c2
-rw-r--r--src/bin/elementary/test_ui_slider.c2
-rw-r--r--src/bin/elementary/test_ui_slider_interval.c2
-rw-r--r--src/bin/elementary/test_ui_spin.c2
-rw-r--r--src/bin/elementary/test_ui_spin_button.c2
-rw-r--r--src/bin/elementary/test_ui_table_static.c2
-rw-r--r--src/bin/elementary/test_win_dialog.c2
-rw-r--r--src/bin/elementary/test_win_indicator.c4
-rw-r--r--src/bin/elementary/test_win_stack.c4
27 files changed, 39 insertions, 39 deletions
diff --git a/src/bin/elementary/test_bg.c b/src/bin/elementary/test_bg.c
index be0f553..59d1882 100644
--- a/src/bin/elementary/test_bg.c
+++ b/src/bin/elementary/test_bg.c
@@ -330,7 +330,7 @@ test_bg_window(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event
330 Evas_Object *win, *box, *cs; 330 Evas_Object *win, *box, *cs;
331 char buf[PATH_MAX]; 331 char buf[PATH_MAX];
332 332
333 win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(), 333 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL,
334 efl_text_set(efl_added, "Bg EOAPI (Efl.Ui.Win)"), 334 efl_text_set(efl_added, "Bg EOAPI (Efl.Ui.Win)"),
335 efl_ui_win_autodel_set(efl_added, EINA_TRUE), 335 efl_ui_win_autodel_set(efl_added, EINA_TRUE),
336 efl_ui_win_alpha_set(efl_added, 1)); 336 efl_ui_win_alpha_set(efl_added, 1));
@@ -403,7 +403,7 @@ test_bg_scale_type(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *e
403 Evas_Object *rd, *rdg; 403 Evas_Object *rd, *rdg;
404 char buf[PATH_MAX]; 404 char buf[PATH_MAX];
405 405
406 win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(), 406 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL,
407 efl_text_set(efl_added, "Bg EOAPI (Efl.Ui.Bg)"), 407 efl_text_set(efl_added, "Bg EOAPI (Efl.Ui.Bg)"),
408 efl_ui_win_autodel_set(efl_added, EINA_TRUE), 408 efl_ui_win_autodel_set(efl_added, EINA_TRUE),
409 efl_ui_win_alpha_set(efl_added, EINA_FALSE)); 409 efl_ui_win_alpha_set(efl_added, EINA_FALSE));
diff --git a/src/bin/elementary/test_box.c b/src/bin/elementary/test_box.c
index ef195b6..f50dcb3 100644
--- a/src/bin/elementary/test_box.c
+++ b/src/bin/elementary/test_box.c
@@ -889,7 +889,7 @@ test_box_stack(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
889 Evas_Object *win, *bx, *o; 889 Evas_Object *win, *bx, *o;
890 char buf[PATH_MAX]; 890 char buf[PATH_MAX];
891 891
892 win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(), 892 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL,
893 efl_text_set(efl_added, "Efl.Ui.Box_Stack"), 893 efl_text_set(efl_added, "Efl.Ui.Box_Stack"),
894 efl_ui_win_autodel_set(efl_added, EINA_TRUE)); 894 efl_ui_win_autodel_set(efl_added, EINA_TRUE));
895 895
diff --git a/src/bin/elementary/test_calendar.c b/src/bin/elementary/test_calendar.c
index aeb31f9..ba37407 100644
--- a/src/bin/elementary/test_calendar.c
+++ b/src/bin/elementary/test_calendar.c
@@ -431,7 +431,7 @@ test_efl_ui_calendar(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void
431 current_date = time(NULL) + SEC_PER_YEAR; 431 current_date = time(NULL) + SEC_PER_YEAR;
432 localtime_r(&current_date, &max_date); 432 localtime_r(&current_date, &max_date);
433 433
434 win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(), 434 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL,
435 efl_text_set(efl_added, "Efl Ui Calendar"), 435 efl_text_set(efl_added, "Efl Ui Calendar"),
436 efl_ui_win_autodel_set(efl_added, EINA_TRUE)); 436 efl_ui_win_autodel_set(efl_added, EINA_TRUE));
437 437
diff --git a/src/bin/elementary/test_efl_gfx_map.c b/src/bin/elementary/test_efl_gfx_map.c
index 3c6e301..72d7db1 100644
--- a/src/bin/elementary/test_efl_gfx_map.c
+++ b/src/bin/elementary/test_efl_gfx_map.c
@@ -45,7 +45,7 @@ test_efl_gfx_map(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
45 Evas_Object *win, *img; 45 Evas_Object *win, *img;
46 char buf[PATH_MAX]; 46 char buf[PATH_MAX];
47 47
48 win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(), 48 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL,
49 efl_text_set(efl_added, "Efl Gfx Map"), 49 efl_text_set(efl_added, "Efl Gfx Map"),
50 efl_ui_win_autodel_set(efl_added, EINA_TRUE)); 50 efl_ui_win_autodel_set(efl_added, EINA_TRUE));
51 51
diff --git a/src/bin/elementary/test_evas_map.c b/src/bin/elementary/test_evas_map.c
index 3dc6411..7e25aaf 100644
--- a/src/bin/elementary/test_evas_map.c
+++ b/src/bin/elementary/test_evas_map.c
@@ -53,7 +53,7 @@ test_evas_map(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
53 Evas_Object *win, *img; 53 Evas_Object *win, *img;
54 char buf[PATH_MAX]; 54 char buf[PATH_MAX];
55 55
56 win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(), 56 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL,
57 efl_text_set(efl_added, "Evas Map"), 57 efl_text_set(efl_added, "Evas Map"),
58 efl_ui_win_autodel_set(efl_added, EINA_TRUE)); 58 efl_ui_win_autodel_set(efl_added, EINA_TRUE));
59 59
diff --git a/src/bin/elementary/test_evas_mask.c b/src/bin/elementary/test_evas_mask.c
index 6a4bbcf..e322f7b 100644
--- a/src/bin/elementary/test_evas_mask.c
+++ b/src/bin/elementary/test_evas_mask.c
@@ -108,7 +108,7 @@ test_evas_mask(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event
108 Elm_Genlist_Item_Class *itc; 108 Elm_Genlist_Item_Class *itc;
109 char buf[PATH_MAX]; 109 char buf[PATH_MAX];
110 110
111 win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(), 111 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL,
112 efl_text_set(efl_added, "Evas masking demo"), 112 efl_text_set(efl_added, "Evas masking demo"),
113 efl_ui_win_autodel_set(efl_added, 1)); 113 efl_ui_win_autodel_set(efl_added, 1));
114 114
diff --git a/src/bin/elementary/test_evas_snapshot.c b/src/bin/elementary/test_evas_snapshot.c
index 411da14..e288278 100644
--- a/src/bin/elementary/test_evas_snapshot.c
+++ b/src/bin/elementary/test_evas_snapshot.c
@@ -118,7 +118,7 @@ test_evas_snapshot(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *e
118 Eo *win, *table, *o, *snap, *box; 118 Eo *win, *table, *o, *snap, *box;
119 const char *path; 119 const char *path;
120 120
121 win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(), 121 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL,
122 efl_text_set(efl_added, "Evas Snapshot"), 122 efl_text_set(efl_added, "Evas Snapshot"),
123 efl_ui_win_autodel_set(efl_added, 1)); 123 efl_ui_win_autodel_set(efl_added, 1));
124 124
diff --git a/src/bin/elementary/test_gfx_filters.c b/src/bin/elementary/test_gfx_filters.c
index da68bb6..72b0ba3 100644
--- a/src/bin/elementary/test_gfx_filters.c
+++ b/src/bin/elementary/test_gfx_filters.c
@@ -333,7 +333,7 @@ test_gfx_filters(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *eve
333{ 333{
334 Eo *win, *box, *box2, *o, *text = NULL, *spinner, *code, *split, *flip, *tb; 334 Eo *win, *box, *box2, *o, *text = NULL, *spinner, *code, *split, *flip, *tb;
335 335
336 win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(), 336 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL,
337 efl_text_set(efl_added, "Gfx Filter Editor"), 337 efl_text_set(efl_added, "Gfx Filter Editor"),
338 efl_ui_win_autodel_set(efl_added, 1)); 338 efl_ui_win_autodel_set(efl_added, 1));
339 339
diff --git a/src/bin/elementary/test_glview.c b/src/bin/elementary/test_glview.c
index 2a69dae..6a133e9 100644
--- a/src/bin/elementary/test_glview.c
+++ b/src/bin/elementary/test_glview.c
@@ -644,7 +644,7 @@ _test_glview_do(Evas_GL_Context_Version version)
644 elm_config_accel_preference_set(accel); 644 elm_config_accel_preference_set(accel);
645 eina_stringshare_del(accel); 645 eina_stringshare_del(accel);
646#else 646#else
647 win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(), 647 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL,
648 efl_ui_win_name_set(efl_added, "glview"), 648 efl_ui_win_name_set(efl_added, "glview"),
649 efl_text_set(efl_added, "GLView"), 649 efl_text_set(efl_added, "GLView"),
650 efl_ui_win_accel_preference_set(efl_added, "gl:depth")); 650 efl_ui_win_accel_preference_set(efl_added, "gl:depth"));
diff --git a/src/bin/elementary/test_nstate.c b/src/bin/elementary/test_nstate.c
index 54924e7..4da3b21 100644
--- a/src/bin/elementary/test_nstate.c
+++ b/src/bin/elementary/test_nstate.c
@@ -15,7 +15,7 @@ test_nstate(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_in
15{ 15{
16 Evas_Object *win, *bx, *nstate; 16 Evas_Object *win, *bx, *nstate;
17 17
18 win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(), 18 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL,
19 efl_text_set(efl_added, "N-state widget"), 19 efl_text_set(efl_added, "N-state widget"),
20 elm_win_autodel_set(efl_added, EINA_TRUE)); 20 elm_win_autodel_set(efl_added, EINA_TRUE));
21 21
diff --git a/src/bin/elementary/test_part_bg.c b/src/bin/elementary/test_part_bg.c
index ac4b294..111af88 100644
--- a/src/bin/elementary/test_part_bg.c
+++ b/src/bin/elementary/test_part_bg.c
@@ -142,7 +142,7 @@ test_part_background(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void
142 content_class[16] = EFL_UI_SPIN_CLASS; 142 content_class[16] = EFL_UI_SPIN_CLASS;
143 content_class[17] = EFL_UI_SPIN_BUTTON_CLASS; 143 content_class[17] = EFL_UI_SPIN_BUTTON_CLASS;
144 144
145 win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(), 145 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL,
146 efl_text_set(efl_added, "Widget Part Background"), 146 efl_text_set(efl_added, "Widget Part Background"),
147 efl_ui_win_autodel_set(efl_added, EINA_TRUE)); 147 efl_ui_win_autodel_set(efl_added, EINA_TRUE));
148 148
diff --git a/src/bin/elementary/test_part_shadow.c b/src/bin/elementary/test_part_shadow.c
index 4db24ec..2df5f67 100644
--- a/src/bin/elementary/test_part_shadow.c
+++ b/src/bin/elementary/test_part_shadow.c
@@ -71,7 +71,7 @@ _delete_cb(void *data, const Efl_Event *ev)
71 Test_Data *td = data; 71 Test_Data *td = data;
72 72
73 pulse_stop(td, NULL); 73 pulse_stop(td, NULL);
74 efl_del(ev->object); 74 efl_unref(ev->object);
75 free(td); 75 free(td);
76} 76}
77 77
@@ -85,7 +85,7 @@ test_part_shadow(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *eve
85 85
86 td = calloc(1, sizeof(*td)); 86 td = calloc(1, sizeof(*td));
87 87
88 win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(), 88 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL,
89 efl_ui_win_name_set(efl_added, "shadow"), 89 efl_ui_win_name_set(efl_added, "shadow"),
90 efl_text_set(efl_added, "Shadow effects")); 90 efl_text_set(efl_added, "Shadow effects"));
91 efl_event_callback_add(win, EFL_UI_WIN_EVENT_DELETE_REQUEST, _delete_cb, td); 91 efl_event_callback_add(win, EFL_UI_WIN_EVENT_DELETE_REQUEST, _delete_cb, td);
diff --git a/src/bin/elementary/test_photocam.c b/src/bin/elementary/test_photocam.c
index f89d64b..f6c2e97 100644
--- a/src/bin/elementary/test_photocam.c
+++ b/src/bin/elementary/test_photocam.c
@@ -804,7 +804,7 @@ test_image_zoomable_animated(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSE
804 Eo *win, *bx, *zoomable, *rect; 804 Eo *win, *bx, *zoomable, *rect;
805 char buf[PATH_MAX]; 805 char buf[PATH_MAX];
806 806
807 win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(), 807 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL,
808 efl_ui_win_type_set(efl_added, EFL_UI_WIN_BASIC), 808 efl_ui_win_type_set(efl_added, EFL_UI_WIN_BASIC),
809 efl_text_set(efl_added, "Efl.Ui.Image_Zoomable animation"), 809 efl_text_set(efl_added, "Efl.Ui.Image_Zoomable animation"),
810 efl_ui_win_autodel_set(efl_added, EINA_TRUE)); 810 efl_ui_win_autodel_set(efl_added, EINA_TRUE));
diff --git a/src/bin/elementary/test_ui_button.c b/src/bin/elementary/test_ui_button.c
index 6519dad..f5aa340 100644
--- a/src/bin/elementary/test_ui_button.c
+++ b/src/bin/elementary/test_ui_button.c
@@ -27,7 +27,7 @@ test_ui_button(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event
27 Eo *win, *bx, *btn; 27 Eo *win, *bx, *btn;
28 char buf[PATH_MAX]; 28 char buf[PATH_MAX];
29 29
30 win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(), 30 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL,
31 efl_ui_win_type_set(efl_added, EFL_UI_WIN_BASIC), 31 efl_ui_win_type_set(efl_added, EFL_UI_WIN_BASIC),
32 efl_text_set(efl_added, "Efl.Ui.Button"), 32 efl_text_set(efl_added, "Efl.Ui.Button"),
33 efl_ui_win_autodel_set(efl_added, EINA_TRUE) 33 efl_ui_win_autodel_set(efl_added, EINA_TRUE)
diff --git a/src/bin/elementary/test_ui_clock.c b/src/bin/elementary/test_ui_clock.c
index 4a60345..2e667b5 100644
--- a/src/bin/elementary/test_ui_clock.c
+++ b/src/bin/elementary/test_ui_clock.c
@@ -47,7 +47,7 @@ test_ui_clock(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_
47{ 47{
48 Evas_Object *win, *bx; 48 Evas_Object *win, *bx;
49 49
50 win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(), 50 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL,
51 efl_ui_win_type_set(efl_added, EFL_UI_WIN_BASIC), 51 efl_ui_win_type_set(efl_added, EFL_UI_WIN_BASIC),
52 efl_text_set(efl_added, "Efl.Ui.Clock"), 52 efl_text_set(efl_added, "Efl.Ui.Clock"),
53 efl_ui_win_autodel_set(efl_added, EINA_TRUE)); 53 efl_ui_win_autodel_set(efl_added, EINA_TRUE));
diff --git a/src/bin/elementary/test_ui_panes.c b/src/bin/elementary/test_ui_panes.c
index 89692aa..4e6d337 100644
--- a/src/bin/elementary/test_ui_panes.c
+++ b/src/bin/elementary/test_ui_panes.c
@@ -8,7 +8,7 @@ test_panes_minsize(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *e
8{ 8{
9 Eo *win, *panes, *panes_h; 9 Eo *win, *panes, *panes_h;
10 10
11 win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(), 11 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL,
12 efl_ui_win_type_set(efl_added, EFL_UI_WIN_BASIC), 12 efl_ui_win_type_set(efl_added, EFL_UI_WIN_BASIC),
13 efl_text_set(efl_added, "Efl.Ui.Panes"), 13 efl_text_set(efl_added, "Efl.Ui.Panes"),
14 efl_ui_win_autodel_set(efl_added, EINA_TRUE) 14 efl_ui_win_autodel_set(efl_added, EINA_TRUE)
diff --git a/src/bin/elementary/test_ui_popup.c b/src/bin/elementary/test_ui_popup.c
index 4667924..3c8ae67 100644
--- a/src/bin/elementary/test_ui_popup.c
+++ b/src/bin/elementary/test_ui_popup.c
@@ -213,7 +213,7 @@ static void
213_win_del(void *data, const Efl_Event *ev EINA_UNUSED) 213_win_del(void *data, const Efl_Event *ev EINA_UNUSED)
214{ 214{
215 efl_ui_popup_data *p_data = data; 215 efl_ui_popup_data *p_data = data;
216 efl_del(p_data->panel_win); 216 efl_unref(p_data->panel_win);
217 free(p_data); 217 free(p_data);
218 printf("window is deleted\n"); 218 printf("window is deleted\n");
219} 219}
@@ -222,7 +222,7 @@ static void
222_panel_win_del(void *data, const Efl_Event *ev EINA_UNUSED) 222_panel_win_del(void *data, const Efl_Event *ev EINA_UNUSED)
223{ 223{
224 efl_ui_popup_data *p_data = data; 224 efl_ui_popup_data *p_data = data;
225 efl_del(p_data->win); 225 efl_unref(p_data->win);
226 free(p_data); 226 free(p_data);
227 printf("window is deleted\n"); 227 printf("window is deleted\n");
228} 228}
@@ -232,14 +232,14 @@ test_ui_popup(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_
232{ 232{
233 efl_ui_popup_data *p_data = (efl_ui_popup_data*)calloc(1, sizeof(efl_ui_popup_data)); 233 efl_ui_popup_data *p_data = (efl_ui_popup_data*)calloc(1, sizeof(efl_ui_popup_data));
234 234
235 Eo *win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(), 235 Eo *win = efl_add_ref(EFL_UI_WIN_CLASS, NULL,
236 efl_text_set(efl_added, "Efl.Ui.Popup"), 236 efl_text_set(efl_added, "Efl.Ui.Popup"),
237 efl_ui_win_autodel_set(efl_added, EINA_TRUE)); 237 efl_ui_win_autodel_set(efl_added, EINA_TRUE));
238 efl_event_callback_add(win, EFL_UI_WIN_EVENT_DELETE_REQUEST, _win_del, p_data); 238 efl_event_callback_add(win, EFL_UI_WIN_EVENT_DELETE_REQUEST, _win_del, p_data);
239 239
240 efl_gfx_entity_size_set(win, EINA_SIZE2D(500, 500)); 240 efl_gfx_entity_size_set(win, EINA_SIZE2D(500, 500));
241 241
242 Eo *panel_win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(), 242 Eo *panel_win = efl_add_ref(EFL_UI_WIN_CLASS, NULL,
243 efl_text_set(efl_added, "Efl.Ui.Popup Panel"), 243 efl_text_set(efl_added, "Efl.Ui.Popup Panel"),
244 efl_ui_win_autodel_set(efl_added, EINA_TRUE)); 244 efl_ui_win_autodel_set(efl_added, EINA_TRUE));
245 efl_event_callback_add(panel_win, EFL_UI_WIN_EVENT_DELETE_REQUEST, _panel_win_del, p_data); 245 efl_event_callback_add(panel_win, EFL_UI_WIN_EVENT_DELETE_REQUEST, _panel_win_del, p_data);
@@ -351,7 +351,7 @@ test_ui_popup_alert(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *
351{ 351{
352 char buf[PATH_MAX]; 352 char buf[PATH_MAX];
353 353
354 Eo *win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(), 354 Eo *win = efl_add_ref(EFL_UI_WIN_CLASS, NULL,
355 efl_text_set(efl_added, "Efl.Ui.Popup.Alert"), 355 efl_text_set(efl_added, "Efl.Ui.Popup.Alert"),
356 efl_ui_win_autodel_set(efl_added, EINA_TRUE)); 356 efl_ui_win_autodel_set(efl_added, EINA_TRUE));
357 357
@@ -506,7 +506,7 @@ _alert_scroll_case5_cb(void *data, const Efl_Event *ev EINA_UNUSED)
506void 506void
507test_ui_popup_alert_scroll(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 507test_ui_popup_alert_scroll(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
508{ 508{
509 Eo *win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(), 509 Eo *win = efl_add_ref(EFL_UI_WIN_CLASS, NULL,
510 efl_text_set(efl_added, "Efl.Ui.Popup.Alert.Scroll"), 510 efl_text_set(efl_added, "Efl.Ui.Popup.Alert.Scroll"),
511 efl_ui_win_autodel_set(efl_added, EINA_TRUE)); 511 efl_ui_win_autodel_set(efl_added, EINA_TRUE));
512 512
@@ -889,7 +889,7 @@ _alert_text_case14_cb(void *data, const Efl_Event *ev EINA_UNUSED)
889void 889void
890test_ui_popup_alert_text(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 890test_ui_popup_alert_text(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
891{ 891{
892 Eo *win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(), 892 Eo *win = efl_add_ref(EFL_UI_WIN_CLASS, NULL,
893 efl_text_set(efl_added, "Efl.Ui.Popup.Alert.Text"), 893 efl_text_set(efl_added, "Efl.Ui.Popup.Alert.Text"),
894 efl_ui_win_autodel_set(efl_added, EINA_TRUE)); 894 efl_ui_win_autodel_set(efl_added, EINA_TRUE));
895 895
@@ -999,7 +999,7 @@ test_ui_popup_anchor(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void
999 999
1000 char buf[PATH_MAX]; 1000 char buf[PATH_MAX];
1001 1001
1002 Eo *win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(), 1002 Eo *win = efl_add_ref(EFL_UI_WIN_CLASS, NULL,
1003 efl_text_set(efl_added, "Efl.Ui.Popup.Anchor"), 1003 efl_text_set(efl_added, "Efl.Ui.Popup.Anchor"),
1004 efl_ui_win_autodel_set(efl_added, EINA_TRUE)); 1004 efl_ui_win_autodel_set(efl_added, EINA_TRUE));
1005 efl_event_callback_add(win, EFL_UI_WIN_EVENT_DELETE_REQUEST, _win_del, p_data); 1005 efl_event_callback_add(win, EFL_UI_WIN_EVENT_DELETE_REQUEST, _win_del, p_data);
diff --git a/src/bin/elementary/test_ui_progressbar.c b/src/bin/elementary/test_ui_progressbar.c
index ac00c72..09a0e70 100644
--- a/src/bin/elementary/test_ui_progressbar.c
+++ b/src/bin/elementary/test_ui_progressbar.c
@@ -104,7 +104,7 @@ _win_delete_req_cb(void *d, const Efl_Event *ev EINA_UNUSED)
104 pbdata *pd = d; 104 pbdata *pd = d;
105 105
106 if (pd->timer) ecore_timer_del(pd->timer); 106 if (pd->timer) ecore_timer_del(pd->timer);
107 efl_del(pd->win); 107 efl_unref(pd->win);
108 free(pd); 108 free(pd);
109} 109}
110 110
@@ -117,7 +117,7 @@ test_ui_progressbar(void *data EINA_UNUSED, Eo *obj EINA_UNUSED, void *event_inf
117 117
118 pd = (pbdata *)calloc(1, sizeof(pbdata)); 118 pd = (pbdata *)calloc(1, sizeof(pbdata));
119 119
120 pd->win = win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(), 120 pd->win = win = efl_add_ref(EFL_UI_WIN_CLASS, NULL,
121 efl_ui_win_type_set(efl_added, EFL_UI_WIN_BASIC), 121 efl_ui_win_type_set(efl_added, EFL_UI_WIN_BASIC),
122 efl_text_set(efl_added, "Efl.Ui.Progressbar"), 122 efl_text_set(efl_added, "Efl.Ui.Progressbar"),
123 efl_ui_win_autodel_set(efl_added, EINA_TRUE), 123 efl_ui_win_autodel_set(efl_added, EINA_TRUE),
diff --git a/src/bin/elementary/test_ui_scroller.c b/src/bin/elementary/test_ui_scroller.c
index 5d9a689..3edc686 100644
--- a/src/bin/elementary/test_ui_scroller.c
+++ b/src/bin/elementary/test_ui_scroller.c
@@ -28,7 +28,7 @@ test_efl_ui_scroller(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void
28 Eo *win, *sc, *sc2, *sc3, *bx, *bx2, *gd, *gd2; 28 Eo *win, *sc, *sc2, *sc3, *bx, *bx2, *gd, *gd2;
29 int i, j; 29 int i, j;
30 30
31 win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(), 31 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL,
32 efl_ui_win_type_set(efl_added, EFL_UI_WIN_BASIC), 32 efl_ui_win_type_set(efl_added, EFL_UI_WIN_BASIC),
33 efl_text_set(efl_added, "Efl Ui Scroller"), 33 efl_text_set(efl_added, "Efl Ui Scroller"),
34 efl_ui_win_autodel_set(efl_added, EINA_TRUE)); 34 efl_ui_win_autodel_set(efl_added, EINA_TRUE));
diff --git a/src/bin/elementary/test_ui_slider.c b/src/bin/elementary/test_ui_slider.c
index 966cc6e..9f54a9d 100644
--- a/src/bin/elementary/test_ui_slider.c
+++ b/src/bin/elementary/test_ui_slider.c
@@ -32,7 +32,7 @@ test_ui_slider(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event
32 Eo *win, *bx, *hbx; 32 Eo *win, *bx, *hbx;
33 double step; 33 double step;
34 34
35 win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(), 35 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL,
36 efl_ui_win_type_set(efl_added, EFL_UI_WIN_BASIC), 36 efl_ui_win_type_set(efl_added, EFL_UI_WIN_BASIC),
37 efl_text_set(efl_added, "Efl.Ui.Slider"), 37 efl_text_set(efl_added, "Efl.Ui.Slider"),
38 efl_ui_win_autodel_set(efl_added, EINA_TRUE)); 38 efl_ui_win_autodel_set(efl_added, EINA_TRUE));
diff --git a/src/bin/elementary/test_ui_slider_interval.c b/src/bin/elementary/test_ui_slider_interval.c
index bad8fca..3973b3d 100644
--- a/src/bin/elementary/test_ui_slider_interval.c
+++ b/src/bin/elementary/test_ui_slider_interval.c
@@ -32,7 +32,7 @@ test_slider_interval(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void
32 Eo *win, *bx, *hbx; 32 Eo *win, *bx, *hbx;
33 double step; 33 double step;
34 34
35 win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(), 35 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL,
36 efl_ui_win_type_set(efl_added, EFL_UI_WIN_BASIC), 36 efl_ui_win_type_set(efl_added, EFL_UI_WIN_BASIC),
37 efl_text_set(efl_added, "Efl.Ui.Slider_Interval"), 37 efl_text_set(efl_added, "Efl.Ui.Slider_Interval"),
38 efl_ui_win_autodel_set(efl_added, EINA_TRUE)); 38 efl_ui_win_autodel_set(efl_added, EINA_TRUE));
diff --git a/src/bin/elementary/test_ui_spin.c b/src/bin/elementary/test_ui_spin.c
index c857cd0..85945a3 100644
--- a/src/bin/elementary/test_ui_spin.c
+++ b/src/bin/elementary/test_ui_spin.c
@@ -36,7 +36,7 @@ test_ui_spin(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_i
36{ 36{
37 Eo *win, *bx, *sp; 37 Eo *win, *bx, *sp;
38 38
39 win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(), 39 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL,
40 efl_ui_win_type_set(efl_added, EFL_UI_WIN_BASIC), 40 efl_ui_win_type_set(efl_added, EFL_UI_WIN_BASIC),
41 efl_text_set(efl_added, "Efl.Ui.Spin"), 41 efl_text_set(efl_added, "Efl.Ui.Spin"),
42 efl_ui_win_autodel_set(efl_added, EINA_TRUE)); 42 efl_ui_win_autodel_set(efl_added, EINA_TRUE));
diff --git a/src/bin/elementary/test_ui_spin_button.c b/src/bin/elementary/test_ui_spin_button.c
index 0a91da7..095c2a5 100644
--- a/src/bin/elementary/test_ui_spin_button.c
+++ b/src/bin/elementary/test_ui_spin_button.c
@@ -27,7 +27,7 @@ test_ui_spin_button(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *
27 for (i = 0; i < NUM_OF_VALS; i++) 27 for (i = 0; i < NUM_OF_VALS; i++)
28 eina_array_push(array, &values[i]); 28 eina_array_push(array, &values[i]);
29 29
30 win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(), 30 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL,
31 efl_ui_win_type_set(efl_added, EFL_UI_WIN_BASIC), 31 efl_ui_win_type_set(efl_added, EFL_UI_WIN_BASIC),
32 efl_text_set(efl_added, "Efl.Ui.Spin_Button"), 32 efl_text_set(efl_added, "Efl.Ui.Spin_Button"),
33 efl_ui_win_autodel_set(efl_added, EINA_TRUE)); 33 efl_ui_win_autodel_set(efl_added, EINA_TRUE));
diff --git a/src/bin/elementary/test_ui_table_static.c b/src/bin/elementary/test_ui_table_static.c
index 95de97e..369236f 100644
--- a/src/bin/elementary/test_ui_table_static.c
+++ b/src/bin/elementary/test_ui_table_static.c
@@ -104,7 +104,7 @@ test_ui_table_static(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void
104 Eo *win, *table, *bt, *rc, *en; 104 Eo *win, *table, *bt, *rc, *en;
105 api_data *api = calloc(1, sizeof(*api)); 105 api_data *api = calloc(1, sizeof(*api));
106 106
107 win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(), 107 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL,
108 efl_ui_win_name_set(efl_added, "table"), 108 efl_ui_win_name_set(efl_added, "table"),
109 efl_text_set(efl_added, "Table"), 109 efl_text_set(efl_added, "Table"),
110 efl_ui_win_autodel_set(efl_added, EINA_TRUE), 110 efl_ui_win_autodel_set(efl_added, EINA_TRUE),
diff --git a/src/bin/elementary/test_win_dialog.c b/src/bin/elementary/test_win_dialog.c
index 5e380ae..6858cf8 100644
--- a/src/bin/elementary/test_win_dialog.c
+++ b/src/bin/elementary/test_win_dialog.c
@@ -101,7 +101,7 @@ _bt4_clicked_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *even
101{ 101{
102 Efl_Canvas_Object *dia, *lb; 102 Efl_Canvas_Object *dia, *lb;
103 103
104 dia = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(), 104 dia = efl_add_ref(EFL_UI_WIN_CLASS, NULL,
105 efl_ui_win_type_set(efl_added, EFL_UI_WIN_DIALOG_BASIC), 105 efl_ui_win_type_set(efl_added, EFL_UI_WIN_DIALOG_BASIC),
106 efl_ui_win_name_set(efl_added, "window-dia-4"), 106 efl_ui_win_name_set(efl_added, "window-dia-4"),
107 efl_ui_win_autodel_set(efl_added, EINA_TRUE), 107 efl_ui_win_autodel_set(efl_added, EINA_TRUE),
diff --git a/src/bin/elementary/test_win_indicator.c b/src/bin/elementary/test_win_indicator.c
index ecc73de..99f54c5 100644
--- a/src/bin/elementary/test_win_indicator.c
+++ b/src/bin/elementary/test_win_indicator.c
@@ -14,7 +14,7 @@ _create_indicator(void)
14{ 14{
15 const char *indi_name; 15 const char *indi_name;
16 16
17 Eo *win = efl_add(EFL_UI_WIN_SOCKET_CLASS, efl_main_loop_get(), 17 Eo *win = efl_add_ref(EFL_UI_WIN_SOCKET_CLASS, NULL,
18 efl_text_set(efl_added, "indicator"), 18 efl_text_set(efl_added, "indicator"),
19 efl_ui_win_autodel_set(efl_added, EINA_TRUE), 19 efl_ui_win_autodel_set(efl_added, EINA_TRUE),
20 efl_ui_win_alpha_set(efl_added, EINA_TRUE)); 20 efl_ui_win_alpha_set(efl_added, EINA_TRUE));
@@ -91,7 +91,7 @@ test_win_indicator(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *e
91 indicator = _create_indicator(); 91 indicator = _create_indicator();
92 92
93 // FIXME: Resizing window should no cause sizing issues! 93 // FIXME: Resizing window should no cause sizing issues!
94 win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(), 94 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL,
95 efl_ui_win_type_set(efl_added, EFL_UI_WIN_BASIC), 95 efl_ui_win_type_set(efl_added, EFL_UI_WIN_BASIC),
96 efl_text_set(efl_added, "Efl.Win.Indicator"), 96 efl_text_set(efl_added, "Efl.Win.Indicator"),
97 efl_gfx_size_hint_max_set(efl_added, EINA_SIZE2D(300, -1)), 97 efl_gfx_size_hint_max_set(efl_added, EINA_SIZE2D(300, -1)),
diff --git a/src/bin/elementary/test_win_stack.c b/src/bin/elementary/test_win_stack.c
index de16e7b..d13072d 100644
--- a/src/bin/elementary/test_win_stack.c
+++ b/src/bin/elementary/test_win_stack.c
@@ -18,13 +18,13 @@ _win_new(Evas_Object *stack_top, const char *title)
18 Evas_Object *bg, *bx, *bt, *lb, *win; 18 Evas_Object *bg, *bx, *bt, *lb, *win;
19 19
20 if (level >= 3) 20 if (level >= 3)
21 win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(), 21 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL,
22 efl_ui_win_name_set(efl_added, "window-stack"), 22 efl_ui_win_name_set(efl_added, "window-stack"),
23 efl_ui_win_type_set(efl_added, ELM_WIN_NAVIFRAME_BASIC), 23 efl_ui_win_type_set(efl_added, ELM_WIN_NAVIFRAME_BASIC),
24 efl_text_set(efl_added, title), 24 efl_text_set(efl_added, title),
25 efl_ui_win_autodel_set(efl_added, EINA_TRUE)); 25 efl_ui_win_autodel_set(efl_added, EINA_TRUE));
26 else 26 else
27 win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(), 27 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL,
28 efl_ui_win_name_set(efl_added, "window-stack"), 28 efl_ui_win_name_set(efl_added, "window-stack"),
29 efl_ui_win_type_set(efl_added, ELM_WIN_DIALOG_BASIC), 29 efl_ui_win_type_set(efl_added, ELM_WIN_DIALOG_BASIC),
30 efl_text_set(efl_added, title), 30 efl_text_set(efl_added, title),