discomfitor pushed a commit to branch master. http://git.enlightenment.org/core/enlightenment.git/commit/?id=01b7cf822791fe13edde7b75d05d4609fea4e6f7
commit 01b7cf822791fe13edde7b75d05d4609fea4e6f7 Author: Mike Blumenkrantz <zm...@osg.samsung.com> Date: Fri Aug 4 16:23:39 2017 -0400 add function to return a currently-active menu --- src/bin/e_menu.c | 6 ++++++ src/bin/e_menu.h | 1 + 2 files changed, 7 insertions(+) diff --git a/src/bin/e_menu.c b/src/bin/e_menu.c index 21556798c..e9fcd3024 100644 --- a/src/bin/e_menu.c +++ b/src/bin/e_menu.c @@ -1207,6 +1207,12 @@ e_menu_is_active(void) return _e_menu_win == e_comp->ee_win; } +E_API E_Menu * +e_menu_active_get(void) +{ + return _e_active_menus ? eina_list_last_data_get(_e_active_menus) : NULL; +} + /* local subsystem functions */ static void _e_menu_dangling_cb(void *data) diff --git a/src/bin/e_menu.h b/src/bin/e_menu.h index 343201052..eee572344 100644 --- a/src/bin/e_menu.h +++ b/src/bin/e_menu.h @@ -204,6 +204,7 @@ E_API void e_menu_item_disabled_set(E_Menu_Item *mi, int disable); E_API void e_menu_idler_before(void); E_API Eina_Bool e_menu_is_active(void); +E_API E_Menu *e_menu_active_get(void); #endif #endif --