}
void
-ManProc ()
-{ // called from menu
- ManInner(NULL, NULL, NULL, NULL);
-}
-
-void
BugReportProc ()
{
char buf[MSG_SIZ];
MenuItem *
MenuNameToItem (char *menuName)
{
- int i;
+ int i=0;
char buf[MSG_SIZ], *p;
MenuItem *menuTab;
static MenuItem a = { NULL, NULL, NothingProc };
extern Option mainOptions[];
safeStrCpy(buf, menuName, MSG_SIZ);
p = strchr(buf, '.');
- if(!p) menuTab = noMenu; else {
+ if(!p) menuTab = noMenu, p = menuName; else {
*p++ = NULLCHAR;
for(i=0; menuBar[i].name; i++)
if(!strcmp(buf, menuBar[i].name)) break;
#if ZIPPY
if (appData.zippyPlay && !appData.noChessProgram) { /* [DM] icsEngineAnalyze */
- EnableMenuItem("Analysis Mode", True);
- EnableMenuItem("Engine #1 Settings", True);
+ EnableNamedMenuItem("Mode.AnalysisMode", True);
+ EnableNamedMenuItem("Engine.Engine#1Settings", True);
}
#endif
}
case MachinePlaysBlack:
case MachinePlaysWhite:
case TwoMachinesPlay:
- EnableMenuItem(ModeToWidgetName(gameMode), True);
+ EnableNamedMenuItem(ModeToWidgetName(gameMode), True);
break;
default:
break;