summaryrefslogtreecommitdiff
path: root/src/bin/elementary/test_ui_tab_pager.c
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-08-23 19:16:56 +0200
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-08-29 14:42:45 +0200
commit3cc427234ef0d05507da6f3259fc11b4f7b02249 (patch)
tree512e5b9649c28a6e5400593128d1b07e9ae2c930 /src/bin/elementary/test_ui_tab_pager.c
parentffafe749ed9c813696929262aacb61fd5af0ecc2 (diff)
efl_ui_tab_pager: remove the setter for tab_bar
the setter of the tab_bar here is quite useless. If you set it after something else was set, the item situation is not clear anymore, there is more in the spotlight than in the bar. You cannot use the widget without tab bar. So the logical consequence for me was that the pager create the tab bar by itself, and you can just access it via a getter. Reviewed-by: WooHyun Jung <woohyun0705@gmail.com> Differential Revision: https://phab.enlightenment.org/D9731
Diffstat (limited to '')
-rw-r--r--src/bin/elementary/test_ui_tab_pager.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/bin/elementary/test_ui_tab_pager.c b/src/bin/elementary/test_ui_tab_pager.c
index e23166d..93aaa12 100644
--- a/src/bin/elementary/test_ui_tab_pager.c
+++ b/src/bin/elementary/test_ui_tab_pager.c
@@ -97,7 +97,7 @@ tab_page_add(Eo *parent)
97void 97void
98test_ui_tab_pager(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 98test_ui_tab_pager(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
99{ 99{
100 Eo *win, *layout, *navi, *list, *tp, *tb, *page; 100 Eo *win, *layout, *navi, *list, *tp, *page;
101 //Efl_Page_Transition *tran; 101 //Efl_Page_Transition *tran;
102 App_Data *ad = NULL; 102 App_Data *ad = NULL;
103 char buf[PATH_MAX]; 103 char buf[PATH_MAX];
@@ -132,9 +132,6 @@ test_ui_tab_pager(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *ev
132 efl_gfx_hint_fill_set(efl_added, EINA_TRUE, EINA_TRUE), 132 efl_gfx_hint_fill_set(efl_added, EINA_TRUE, EINA_TRUE),
133 efl_content_set(efl_part(layout, "tab_pager"), efl_added)); 133 efl_content_set(efl_part(layout, "tab_pager"), efl_added));
134 134
135 tb = efl_add(EFL_UI_TAB_BAR_CLASS, tp);
136 efl_ui_tab_pager_tab_bar_set(tp, tb);
137
138 tab_label_count = 0; 135 tab_label_count = 0;
139 tab_icon_count = 0; 136 tab_icon_count = 0;
140 137