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