summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXMenu.c
diff options
context:
space:
mode:
authordas <das>2003-08-12 08:49:39 (GMT)
committerdas <das>2003-08-12 08:49:39 (GMT)
commita91e19495654009fb8319f54cb3b60048beb6c15 (patch)
treece63a7d63515e12a67cd1649827ba8ed180c7406 /macosx/tkMacOSXMenu.c
parent63e68a19ed75c072e3f6bb35dabc1b1a90477f38 (diff)
downloadtk-a91e19495654009fb8319f54cb3b60048beb6c15.zip
tk-a91e19495654009fb8319f54cb3b60048beb6c15.tar.gz
tk-a91e19495654009fb8319f54cb3b60048beb6c15.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 6bf92f2..2180bf9 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.6.2.1 2003/05/13 02:42:57 das Exp $
+ * RCS: @(#) $Id: tkMacOSXMenu.c,v 1.6.2.2 2003/08/12 08:49:39 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);
}