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