diff options
author | das <das@noemail.net> | 2003-08-12 08:49:22 (GMT) |
---|---|---|
committer | das <das@noemail.net> | 2003-08-12 08:49:22 (GMT) |
commit | cf7e980ef9b8db95caf8275af347e04c864db212 (patch) | |
tree | 75da375e62c0aaf92fe39dbe76280d3932eeadbe /macosx/tkMacOSXMenu.c | |
parent | 9513fa4fdd29907ddc93f603dca9e2dfcce42b34 (diff) | |
download | tk-cf7e980ef9b8db95caf8275af347e04c864db212.zip tk-cf7e980ef9b8db95caf8275af347e04c864db212.tar.gz tk-cf7e980ef9b8db95caf8275af347e04c864db212.tar.bz2 |
* macosx/tkMacOSXMenu.c: fixed C99'ism that breaks gcc 2.95.
FossilOrigin-Name: c969779cf81bcbe18bd744637601b79c6f3a8556
Diffstat (limited to 'macosx/tkMacOSXMenu.c')
-rw-r--r-- | macosx/tkMacOSXMenu.c | 5 |
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); } |