[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[E-devel] e17 menu patch



Hop hop hop

A one character patch for e_menu.c =)

It fixes the submenu deactivate callback ( set via
e_menu_item_submenu_post_callback_set() ) wich was never called.

laurent 'kiwi'
--- e_menu.c	2006-07-07 02:49:29.592102000 +0100
+++ NEWe_menu.c	2006-07-07 02:48:07.275616008 +0100
@@ -1788,7 +1788,7 @@
 static void
 _e_menu_submenu_deactivate(E_Menu_Item *mi)
 {
-   if (mi->menu->active) return;
+   if (!mi->menu->active) return;
    if (mi->submenu_post_cb.func)
      mi->submenu_post_cb.func(mi->submenu_post_cb.data, mi->menu, mi);
 }