X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=menus.c;h=fbc7893780c6f6d575e256b679a374002a11c9a1;hb=e87c200d0b9a61b23af0782f5b4c0d32aa62fd4a;hp=75d56afadc388eb7f2ab805605ef154fa4681dcc;hpb=c133ccd58b40b8d62df35fc7a862adfc03058ffa;p=xboard.git diff --git a/menus.c b/menus.c index 75d56af..fbc7893 100644 --- a/menus.c +++ b/menus.c @@ -397,6 +397,19 @@ EditThemesProc () } void +EditMenuProc () +{ + EditAnyPopUp(icsTextMenuString, &icsTextMenuString, _("ICS Text-Menu Definition")); +} + +void +MuteProc () +{ + mute = !mute; + MarkMenuItem("Options.Mute", mute); +} + +void NothingProc () { return; @@ -649,12 +662,13 @@ MenuItem viewMenu[] = { {N_("Move History"), "h", "MoveHistory", HistoryShowProc, CHECK}, // [HGM] hist: activate 4.2.7 code {N_("Evaluation Graph"), "e", "EvaluationGraph", EvalGraphProc, CHECK}, {N_("Game List"), "g", "GameList", ShowGameListProc, CHECK}, - {N_("ICS text menu"), NULL, "ICStextmenu", IcsTextProc, CHECK}, {"----", NULL, NULL, NothingProc}, {N_("Tags"), NULL, "Tags", EditTagsProc, CHECK}, {N_("Comments"), NULL, "Comments", EditCommentProc, CHECK}, {N_("ICS Input Box"), NULL, "ICSInputBox", IcsInputBoxProc, CHECK}, {N_("ICS/Chat Console"), NULL, "OpenChatWindow", ChatProc, CHECK}, + {N_("ICS text menu"), NULL, "ICStextmenu", IcsTextProc, CHECK}, + {N_("Edit ICS menu..."), NULL, "EditTextMenu", EditMenuProc}, {"----", NULL, NULL, NothingProc}, {N_("Edit Theme List..."), NULL, "EditThemeList", EditThemesProc}, {N_("Board..."), NULL, "Board", BoardOptionsProc}, @@ -719,6 +733,8 @@ MenuItem engineMenu[100] = { }; MenuItem optionsMenu[] = { + {N_("Mute all Sounds"), NULL, "Mute", MuteProc, CHECK}, + {"----", NULL, NULL, NothingProc}, #ifdef OPTIONSDIALOG {N_("General..."), NULL, "General", OptionsProc}, #endif