summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authornijtmans@users.sourceforge.net <jan.nijtmans>2014-02-03 19:11:50 (GMT)
committernijtmans@users.sourceforge.net <jan.nijtmans>2014-02-03 19:11:50 (GMT)
commit037c7cb5ccf8c3f6bb1f81a4b4045baf6ce2bae4 (patch)
tree0e1ff60db35d05f5ef55796372eb77fadf4379de /generic
parent0dac4ffdd14033af0038bb621615359375dbd166 (diff)
downloadtk-037c7cb5ccf8c3f6bb1f81a4b4045baf6ce2bae4.zip
tk-037c7cb5ccf8c3f6bb1f81a4b4045baf6ce2bae4.tar.gz
tk-037c7cb5ccf8c3f6bb1f81a4b4045baf6ce2bae4.tar.bz2
Squash problem with native AIX cc not allowing direct macro redefinition.
Diffstat (limited to 'generic')
-rw-r--r--generic/ttk/ttkLabel.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/generic/ttk/ttkLabel.c b/generic/ttk/ttkLabel.c
index 597682f..d51388b 100644
--- a/generic/ttk/ttkLabel.c
+++ b/generic/ttk/ttkLabel.c
@@ -347,6 +347,8 @@ static void ImageDraw(
* Do not stipple at all under Aqua, just draw the image: it shows up
* as a white rectangle otherwise.
*/
+
+
if (state & TTK_STATE_DISABLED) {
if (TtkSelectImage(image->imageSpec, 0ul) == image->tkimg) {
#ifndef MAC_OSX_TK
@@ -484,6 +486,7 @@ static Ttk_ElementOptionSpec LabelElementOptions[] = {
* Calculate the text, image, and total width and height.
*/
+#undef MAX
#define MAX(a,b) ((a) > (b) ? a : b);
static void LabelSetup(
LabelElement *c, Tk_Window tkwin, Ttk_State state)