diff options
author | das <das> | 2003-08-12 08:49:39 (GMT) |
---|---|---|
committer | das <das> | 2003-08-12 08:49:39 (GMT) |
commit | 325d3bf1d60abe5c222b729356c0e6424718ad59 (patch) | |
tree | ce63a7d63515e12a67cd1649827ba8ed180c7406 | |
parent | d7f435293a92864f820af706f86ce8b0f60ccaa9 (diff) | |
download | tk-325d3bf1d60abe5c222b729356c0e6424718ad59.zip tk-325d3bf1d60abe5c222b729356c0e6424718ad59.tar.gz tk-325d3bf1d60abe5c222b729356c0e6424718ad59.tar.bz2 |
* macosx/tkMacOSXMenu.c: fixed C99'ism that breaks gcc 2.95.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | macosx/tkMacOSXMenu.c | 5 |
2 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,7 @@ +2003-08-12 Daniel Steffen <das@users.sourceforge.net> + + * macosx/tkMacOSXMenu.c: fixed C99'ism that breaks gcc 2.95. + 2003-07-21 Jeff Hobbs <jeffh@ActiveState.com> *** 8.4.4 TAGGED FOR RELEASE *** 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); } |