summaryrefslogtreecommitdiff
path: root/src/bin/elementary/test_ui_popup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/elementary/test_ui_popup.c')
-rw-r--r--src/bin/elementary/test_ui_popup.c19
1 files changed, 10 insertions, 9 deletions
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