summaryrefslogtreecommitdiffstats
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
parent440576f5ec659812ec733d4a5703f76a0194f31c (diff)
downloadtk-b0f648ca07ee75943d80ed107f90e99616870a35.zip
tk-b0f648ca07ee75943d80ed107f90e99616870a35.tar.gz
tk-b0f648ca07ee75943d80ed107f90e99616870a35.tar.bz2
* macosx/tkMacOSXMenu.c: fixed C99'ism that breaks gcc 2.95.
-rw-r--r--ChangeLog4
-rw-r--r--macosx/tkMacOSXMenu.c5
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index b60e39f..96a4eaa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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-28 Pat Thoyts <patthoyts@users.sourceforge.net>
* win/tkWinDialog.c: Applied patch from bug #611615 which fixes a
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);
}