summaryrefslogtreecommitdiff
path: root/src/bin/elementary/test_ui_tab_pager.c
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-08-29 21:31:24 +0900
committerWooHyun Jung <wh0705.jung@samsung.com>2019-08-29 21:31:24 +0900
commit3c4a870910e0a59de6d0689109b51e7caf3c88eb (patch)
tree247ceea0ae9c10cc8a2a012f0e8a367df45a91c3 /src/bin/elementary/test_ui_tab_pager.c
parent784de4d4711d58ebc9ca641f9f9559669b0a5866 (diff)
efl_ui_tab_bar: remove update event
Summary: before the previous commit this was used to update the tab_bar icon. However, this is not needed anymore, as the item stuff can directly be updated. So I do not see a reason for this event anymore. Reviewers: zmike, segfaultxavi, cedric, woohyun, bowonryu Reviewed By: woohyun Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9727
Diffstat (limited to '')
-rw-r--r--src/bin/elementary/test_ui_tab_pager.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/bin/elementary/test_ui_tab_pager.c b/src/bin/elementary/test_ui_tab_pager.c
index df8a4c0..3161a6b 100644
--- a/src/bin/elementary/test_ui_tab_pager.c
+++ b/src/bin/elementary/test_ui_tab_pager.c
@@ -57,26 +57,6 @@ static char *tab_icon_get()
57 return tab_icons[tab_icon_count++]; 57 return tab_icons[tab_icon_count++];
58} 58}
59 59
60static void
61_tab_changed_cb(void *data EINA_UNUSED, const Efl_Event *event)
62{
63 Efl_Ui_Tab_Page_Tab_Changed_Event *ev = event->info;
64
65 switch (ev->changed_info)
66 {
67 case EFL_UI_TAB_PAGE_TAB_CHANGED_LABEL:
68 printf("[%p] tab label changed\n", event->object);
69 break;
70
71 case EFL_UI_TAB_PAGE_TAB_CHANGED_ICON:
72 printf("[%p] tab icon changed\n", event->object);
73 break;
74
75 default:
76 break;
77 }
78}
79
80Eo * 60Eo *
81content_add(Eo *parent, char *text) 61content_add(Eo *parent, char *text)
82{ 62{
@@ -110,8 +90,6 @@ tab_page_add(Eo *parent)
110 efl_text_set(efl_part(tab_page, "tab"), label); 90 efl_text_set(efl_part(tab_page, "tab"), label);
111 efl_ui_tab_page_part_tab_icon_set(efl_part(tab_page, "tab"), icon); 91 efl_ui_tab_page_part_tab_icon_set(efl_part(tab_page, "tab"), icon);
112 92
113 efl_event_callback_add(tab_page, EFL_UI_TAB_PAGE_EVENT_TAB_CHANGED, _tab_changed_cb, NULL);
114
115 return tab_page; 93 return tab_page;
116} 94}
117 95