summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXMenu.c
diff options
context:
space:
mode:
authordas <das>2003-08-12 08:49:22 (GMT)
committerdas <das>2003-08-12 08:49:22 (GMT)
commitb0f648ca07ee75943d80ed107f90e99616870a35 (patch)
tree75da375e62c0aaf92fe39dbe76280d3932eeadbe /macosx/tkMacOSXMenu.c
parent440576f5ec659812ec733d4a5703f76a0194f31c (diff)
downloadtk-b0f648ca07ee75943d80ed107f90e99616870a35.zip
tk-b0f648ca07ee75943d80ed107f90e99616870a35.tar.gz
tk-b0f648ca07ee75943d80ed107f90e99616870a35.tar.bz2
* macosx/tkMacOSXMenu.c: fixed C99'ism that breaks gcc 2.95.
Diffstat (limited to 'macosx/tkMacOSXMenu.c')
-rw-r--r--macosx/tkMacOSXMenu.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/macosx/tkMacOSXMenu.c b/macosx/tkMacOSXMenu.c
index a69e871..8005558 100644
--- a/macosx/tkMacOSXMenu.c
+++ b/macosx/tkMacOSXMenu.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkMacOSXMenu.c,v 1.9 2003/07/18 11:04:59 vincentdarley Exp $
+ * RCS: @(#) $Id: tkMacOSXMenu.c,v 1.10 2003/08/12 08:49:22 das Exp $
*/
#include "tkMacOSXInt.h"
#include "tkMenuButton.h"
@@ -2144,8 +2144,9 @@ TkMacOSXDispatchMenuEvent(
if ((helpMenuRef != NULL) && (helpMenuRef->menuPtr != NULL)) {
MenuRef outHelpMenu;
MenuItemIndex itemIndex;
+ int newIndex;
HMGetHelpMenu(&outHelpMenu, &itemIndex);
- int newIndex = index - itemIndex;
+ newIndex = index - itemIndex;
result = TkInvokeMenu(currentMenuBarInterp,
helpMenuRef->menuPtr, newIndex);
}