summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXMenu.c
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/tkMacOSXMenu.c')
-rw-r--r--macosx/tkMacOSXMenu.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/macosx/tkMacOSXMenu.c b/macosx/tkMacOSXMenu.c
index 731fcad..6dc0050 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.1.2.8 2002/08/26 21:57:44 wolfsuit Exp $
+ * RCS: @(#) $Id: tkMacOSXMenu.c,v 1.1.2.9 2002/08/30 18:18:16 das Exp $
*/
#include "tkMacOSXInt.h"
#include "tkMenuButton.h"
@@ -412,7 +412,7 @@ int
{
int found = 0;
int newEntry;
- Tcl_HashEntry *commandEntryPtr;
+ Tcl_HashEntry *commandEntryPtr = NULL;
short returnID = *menuIDPtr;
/*
@@ -1086,7 +1086,6 @@ ReconfigureIndividualMenu(
cf = CFSTR ("<Error>");
SetMenuItemTextWithCFString(macMenuHdl, base + index, cf);
}
-
Tcl_DStringFree(&itemTextDString);
/*
@@ -2441,7 +2440,7 @@ DrawSICN(
CGrafPtr saveWorld;
GDHandle saveDevice;
GWorldPtr destPort;
- BitMapPtr destBitMap;
+ const BitMap *destBitMap;
RGBColor origForeColor, origBackColor, foreColor, backColor;
HLock(sicnHandle);
@@ -3985,7 +3984,7 @@ HandleMenuHiliteMsg (MenuRef menu,
SInt16 *whichItem,
TkMenu *menuPtr)
{
- TkMenuEntry *mePtr;
+ TkMenuEntry *mePtr = NULL;
Tk_Font tkfont;
Tk_FontMetrics fontMetrics;
int oldItem;
@@ -4277,7 +4276,7 @@ HandleMenuFindItemsMsg (MenuRef menu,
DONT_SCROLL, DOWN_SCROLL, UP_SCROLL
} scrollDirection;
Rect updateRect;
- short scrollAmt;
+ short scrollAmt = 0;
RGBColor origForeColor, origBackColor;
/*
@@ -4421,7 +4420,7 @@ HandleMenuFindItemsMsg (MenuRef menu,
Tk_Font menuFont;
RgnHandle updateRgn = NewRgn();
- ScrollMenuImage(menu, &menuRectPtr, 0, scrollAmt, NULL);
+ ScrollMenuImage(menu, menuRectPtr, 0, scrollAmt, NULL);
mtdPtr->virtualMenuTop += scrollAmt;
mtdPtr->virtualMenuBottom += scrollAmt;
#if 0