path: root/src/bin/elementary/test_ui_items.c
diff options
authorMarcel Hollerbach <>2019-08-29 21:07:47 +0900
committerWooHyun Jung <>2019-08-29 21:07:48 +0900
commitef3d88dfc9b78f65851167fa3ccaf6c50ea176e9 (patch)
tree4130a10a9e451a7124bbf58dce3685b94fc5ccd5 /src/bin/elementary/test_ui_items.c
parent9c018613ee9a479ae49b4927ac9ff166b2fd864e (diff)
introduce efl_ui_tab_bar_default_item
Summary: Tab bar used a direct layout to implement all this functionality by its own. However, it seems that we can reuse a lot of object functionality that is already part of efl.ui.item. With this commit the features that are not part of Efl.Ui.Item are moved to Efl.Ui.Tab_Bar_Default_Item. The tab bar is changed in a way that you do not need to pass the icon and label by hand anymore, you can rather just pass the tab_bar default item. Additionally, the item for a tab_page can now directly be generated from a page. This is the first commit in order to cleanup efl_ui_tab_bar, tab_page & tab_pager. The goal is also to implement our interfaces for inserting elements on those objects. So our common test suites can also be used. Reviewers: zmike, segfaultxavi, cedric, woohyun, bowonryu Reviewed By: woohyun Subscribers: #reviewers, #committers Tags: #efl Differential Revision:
Diffstat (limited to '')
1 files changed, 12 insertions, 0 deletions
diff --git a/src/bin/elementary/test_ui_items.c b/src/bin/elementary/test_ui_items.c
index 901226a..54dcb64 100644
--- a/src/bin/elementary/test_ui_items.c
+++ b/src/bin/elementary/test_ui_items.c
@@ -92,5 +92,17 @@ void test_efl_ui_item(void *data EINA_UNUSED,
92 o = _item_add(box, EFL_UI_GROUP_ITEM_CLASS, 6); 92 o = _item_add(box, EFL_UI_GROUP_ITEM_CLASS, 6);
93 efl_gfx_hint_size_min_set(o, EINA_SIZE2D(40, 40)); 93 efl_gfx_hint_size_min_set(o, EINA_SIZE2D(40, 40));
94 efl_ui_widget_disabled_set(o, EINA_TRUE); 94 efl_ui_widget_disabled_set(o, EINA_TRUE);
96 o = _item_add(box, EFL_UI_TAB_BAR_DEFAULT_ITEM_CLASS, 5);
97 efl_gfx_hint_size_min_set(o, EINA_SIZE2D(40, 40+40));
98 efl_pack_end(box, o);
100 o = _item_add(box, EFL_UI_TAB_BAR_DEFAULT_ITEM_CLASS, 6);
101 efl_gfx_hint_size_min_set(o, EINA_SIZE2D(40, 40));
102 efl_ui_widget_disabled_set(o, EINA_TRUE);
103 efl_pack_end(box, o);
104 o = _item_add(box, EFL_UI_TAB_BAR_DEFAULT_ITEM_CLASS, 5);
105 efl_ui_tab_bar_default_item_icon_set(o, "folder");
106 efl_gfx_hint_size_min_set(o, EINA_SIZE2D(40, 40+40));
95 efl_pack_end(box, o); 107 efl_pack_end(box, o);
96} 108}