discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=3eaf4e86387939be5ee1f24ef5e5fc4e277a1fb2

commit 3eaf4e86387939be5ee1f24ef5e5fc4e277a1fb2
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Mon Apr 20 16:04:31 2015 -0400

    add function for clearing app menu cache
    
    ref T2271
---
 src/bin/e_int_menus.c | 7 +++++++
 src/bin/e_int_menus.h | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/src/bin/e_int_menus.c b/src/bin/e_int_menus.c
index e3d41d3..effa5cc 100644
--- a/src/bin/e_int_menus.c
+++ b/src/bin/e_int_menus.c
@@ -499,6 +499,13 @@ e_int_menus_menu_augmentation_del(const char *menu, 
E_Int_Menu_Augmentation *mau
 }
 
 EAPI void
+e_int_menus_cache_clear(void)
+{
+   if (_e_int_menus_app_menus)
+     eina_hash_free_buckets(_e_int_menus_app_menus);
+}
+
+EAPI void
 e_int_menus_menu_augmentation_point_disabled_set(const char *menu, Eina_Bool 
disabled)
 {
    if (!menu) return;
diff --git a/src/bin/e_int_menus.h b/src/bin/e_int_menus.h
index 757678c..8af6532 100644
--- a/src/bin/e_int_menus.h
+++ b/src/bin/e_int_menus.h
@@ -84,7 +84,7 @@ EAPI void                     
e_int_menus_menu_augmentation_del(const char *menu
 
 EAPI void                     
e_int_menus_menu_augmentation_point_disabled_set(const char *menu,
                                        Eina_Bool disabled);
-
+EAPI void e_int_menus_cache_clear(void);
 EINTERN void e_int_menus_init(void);
 EINTERN void e_int_menus_shutdown(void);
 #endif

-- 


Reply via email to