summaryrefslogtreecommitdiffstats
path: root/mac/tkMacMenu.c
diff options
context:
space:
mode:
authorjingham <jingham>1999-08-05 06:19:52 (GMT)
committerjingham <jingham>1999-08-05 06:19:52 (GMT)
commit88514478dcf5498d8cceb7995c061fe72d2f96a3 (patch)
tree7c3ba2a7695de390348dcb1772450d829cc0da8b /mac/tkMacMenu.c
parent6bccd0d5a9e6f5663b53b9693c1a73614571d8f9 (diff)
downloadtk-88514478dcf5498d8cceb7995c061fe72d2f96a3.zip
tk-88514478dcf5498d8cceb7995c061fe72d2f96a3.tar.gz
tk-88514478dcf5498d8cceb7995c061fe72d2f96a3.tar.bz2
Fix a typo left over from the conversion of the Menu code from 8.0 to 8.1.
Diffstat (limited to 'mac/tkMacMenu.c')
-rw-r--r--mac/tkMacMenu.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/mac/tkMacMenu.c b/mac/tkMacMenu.c
index 4940269..4a0ab36 100644
--- a/mac/tkMacMenu.c
+++ b/mac/tkMacMenu.c
@@ -8,7 +8,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkMacMenu.c,v 1.10 1999/06/16 05:36:46 jingham Exp $
+ * RCS: @(#) $Id: tkMacMenu.c,v 1.11 1999/08/05 06:19:52 jingham Exp $
*/
#include "tkMacInt.h"
@@ -3574,7 +3574,6 @@ TkpDrawMenuEntry(
Tk_FontMetrics entryMetrics;
int adjustedY = y + padY;
int adjustedHeight = height - 2 * padY;
- int state;
/*
* Choose the gc for drawing the foreground part of the entry.
@@ -3605,7 +3604,7 @@ TkpDrawMenuEntry(
}
}
- if (((parentDisabled || (state == ENTRY_DISABLED)))
+ if (((parentDisabled || (mePtr->state == ENTRY_DISABLED)))
&& (menuPtr->disabledFgPtr != NULL)) {
gc = mePtr->disabledGC;
if (gc == NULL) {