-/*
- * Function to check for menu entry selection on menu deactivation
- */
-static void fghExecuteMenuCallback( SFG_Menu* menu )
-{
- SFG_MenuEntry *menuEntry;
-
- /* First of all check any of the active sub menus... */
- for( menuEntry = (SFG_MenuEntry *)menu->Entries.First;
- menuEntry;
- menuEntry = (SFG_MenuEntry *)menuEntry->Node.Next)
- {
- if( menuEntry->IsActive )
- {
- if( menuEntry->SubMenu )
- fghExecuteMenuCallback( menuEntry->SubMenu );
- else
- if( menu->Callback )
- {
- SFG_Menu *save_menu = fgStructure.CurrentMenu;
- fgStructure.CurrentMenu = menu;
- menu->Callback( menuEntry->ID );
- fgStructure.CurrentMenu = save_menu;
- }
-
- return;
- }
- }
-}
-