X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=menus.c;h=1af89f3dfcfa23436c5980e9fe8f0db629011cb3;hb=15eab3074ed1dc476c19b48da66e82dea27399b5;hp=f786eda5a939f535b2e8f742e7c0731b57cb1f65;hpb=02c925e3932929a5eb4e9a2d6d025f383670ebf6;p=xboard.git diff --git a/menus.c b/menus.c index f786eda..1af89f3 100644 --- a/menus.c +++ b/menus.c @@ -384,12 +384,6 @@ InfoProc () } void -ManProc () -{ // called from menu - ManInner(NULL, NULL, NULL, NULL); -} - -void BugReportProc () { char buf[MSG_SIZ]; @@ -703,6 +697,7 @@ MenuItem viewMenu[] = { {N_("Tags"), "Tags", EditTagsProc}, {N_("Comments"), "Comments", EditCommentProc}, {N_("ICS Input Box"), "ICSInputBox", IcsInputBoxProc}, + {N_("Open Chat Window"), "OpenChatWindow", ChatProc}, {"----", NULL, NothingProc}, {N_("Board..."), "Board", BoardOptionsProc}, {N_("Game List Tags..."), "GameListTags", GameListOptionsProc}, @@ -747,8 +742,8 @@ MenuItem actionMenu[] = { }; MenuItem engineMenu[] = { - {N_("Load New 1st Engine ..."), "LoadEngine", LoadEngine1Proc}, - {N_("Load New 2nd Engine ..."), "LoadEngine", LoadEngine2Proc}, + {N_("Load New 1st Engine ..."), "LoadNew1stEngine", LoadEngine1Proc}, + {N_("Load New 2nd Engine ..."), "LoadNew2ndEngine", LoadEngine2Proc}, {"----", NULL, NothingProc}, {N_("Engine #1 Settings ..."), "Engine#1Settings", FirstSettingsProc}, {N_("Engine #2 Settings ..."), "Engine#2Settings", SecondSettingsProc}, @@ -849,7 +844,7 @@ MenuItem noMenu[] = { { "", "TestLegality", TestLegalityProc }, #endif { "", "AboutGame", AboutGameEvent }, - { "", "Debug", DebugProc }, + { "", "DebugProc", DebugProc }, { "", "Nothing", NothingProc }, {NULL, NULL, NULL} }; @@ -926,7 +921,8 @@ Enables icsEnables[] = { #endif { "Engine.Engine#1Settings", False }, { "Engine.Engine#2Settings", False }, - { "Engine.LoadEngine", False }, + { "Engine.Load1stEngine", False }, + { "Engine.Load2ndEngine", False }, { "Edit.Annotate", False }, { "Options.Match", False }, { NULL, False } @@ -944,6 +940,7 @@ Enables ncpEnables[] = { { "Mode.ICSClient", False }, { "View.ICStextmenu", False }, { "View.ICSInputBox", False }, + { "View.OpenChatWindow", False }, { "Action.", False }, { "Edit.Revert", False }, { "Edit.Annotate", False }, @@ -970,6 +967,7 @@ Enables gnuEnables[] = { { "Mode.ICSClient", False }, { "View.ICStextmenu", False }, { "View.ICSInputBox", False }, + { "View.OpenChatWindow", False }, { "Action.Accept", False }, { "Action.Decline", False }, { "Action.Rematch", False }, @@ -1086,8 +1084,8 @@ SetICSMode () #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 } @@ -1145,7 +1143,7 @@ SetMachineThinkingEnables () case MachinePlaysBlack: case MachinePlaysWhite: case TwoMachinesPlay: - EnableMenuItem(ModeToWidgetName(gameMode), True); + EnableNamedMenuItem(ModeToWidgetName(gameMode), True); break; default: break;