From e339e4b8403b94fb4724be00d2491dd5d82b7f42 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Wed, 29 Dec 2010 23:32:54 +0100 Subject: [PATCH] Adapt JAWS menu to new menu organization The menus did not correspondto the texts after translation of the main menu bar. --- winboard/jaws.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/winboard/jaws.c b/winboard/jaws.c index d05a78f..583dbdd 100644 --- a/winboard/jaws.c +++ b/winboard/jaws.c @@ -237,9 +237,9 @@ AdaptMenu() else AppendMenu(menuJAWS, MF_ENABLED|MF_STRING, (UINT_PTR) menuItemJAWS[i].code, (LPCTSTR) menuItemJAWS[i].name); } - InsertMenu(menuMain, 5, MF_BYPOSITION|MF_POPUP|MF_ENABLED|MF_STRING, + InsertMenu(menuMain, 7, MF_BYPOSITION|MF_POPUP|MF_ENABLED|MF_STRING, (UINT_PTR) menuJAWS, "&JAWS"); - oldMenuItemState[6] = oldMenuItemState[5]; + oldMenuItemState[8] = oldMenuItemState[7]; DrawMenuBar(hwndMain); } @@ -264,8 +264,8 @@ InitJAWS() int i; AdaptMenu(); - menuBarText[0][5] = "&JAWS"; - for(i=0; i<7; i++) menuBarText[1][i] = menuBarText[0][i]; + menuBarText[0][8] = menuBarText[0][7]; menuBarText[0][7] = "&JAWS"; + for(i=0; i<9; i++) menuBarText[1][i] = menuBarText[0][i]; } hAccelJAWS = CreateAcceleratorTable(acceleratorsJAWS, 14); -- 1.7.0.4