rimmed pushed a commit to branch master. http://git.enlightenment.org/tools/eflete.git/commit/?id=99149e9bc1b8a8d65555b58a5ea7e9f9ef621f2d
commit 99149e9bc1b8a8d65555b58a5ea7e9f9ef621f2d Author: Vyacheslav Reutskiy <v.reuts...@samsung.com> Date: Thu Oct 6 22:56:22 2016 +0300 tabs: add API for get opened groups Change-Id: I8458478d6ef59b7f43eba19f692d472eabf04160 --- src/bin/ui/tabs.c | 15 +++++++++++++++ src/bin/ui/tabs.h | 10 ++++++++++ 2 files changed, 25 insertions(+) diff --git a/src/bin/ui/tabs.c b/src/bin/ui/tabs.c index 701e825..5150dae 100644 --- a/src/bin/ui/tabs.c +++ b/src/bin/ui/tabs.c @@ -1289,3 +1289,18 @@ tabs_current_group_get(void) { return tabs.current_group; } + +Eina_List * +tabs_open_groups_get(void) +{ + Eina_List *list = NULL, *l; + Tabs_Item *item; + + EINA_LIST_FOREACH(tabs.items, l, item) + { + if (!item->group) continue; + list = eina_list_append(list, item->group); + } + + return list; +} diff --git a/src/bin/ui/tabs.h b/src/bin/ui/tabs.h index 9becc9f..60becfb 100644 --- a/src/bin/ui/tabs.h +++ b/src/bin/ui/tabs.h @@ -136,4 +136,14 @@ tabs_current_workspace_get(void); Group2 * tabs_current_group_get(void); +/** + * Get the open groups list. + * + * @return The list with groups. + * + * @ingroup Tabs + */ +Eina_List * +tabs_open_groups_get(void); + #endif /* TABS_H */ --