discomfitor pushed a commit to branch master.

commit 8b57301add97560e800ee1d2c8885bbb7fd1a017
Author: discomfitor <[email protected]>
Date:   Thu Sep 5 17:26:22 2013 +0100

    ensure post_deactivate menu callbacks run when hiding all menus
    
    fixes shelf autohiding in some cases
---
 src/bin/e_menu.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/bin/e_menu.c b/src/bin/e_menu.c
index cff4eaf..9e09781 100644
--- a/src/bin/e_menu.c
+++ b/src/bin/e_menu.c
@@ -238,6 +238,8 @@ e_menu_hide_all(void)
 
    EINA_LIST_FREE(_e_active_menus, m)
      {
+        if (m->post_deactivate_cb.func)
+          m->post_deactivate_cb.func(m->post_deactivate_cb.data, m);
         m->active = 0;
         _e_menu_unrealize(m);
         m->in_active_list = 0;

-- 

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk

Reply via email to