summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXWm.c
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/tkMacOSXWm.c')
-rw-r--r--macosx/tkMacOSXWm.c29
1 files changed, 16 insertions, 13 deletions
diff --git a/macosx/tkMacOSXWm.c b/macosx/tkMacOSXWm.c
index 4236540..b8fcd3f 100644
--- a/macosx/tkMacOSXWm.c
+++ b/macosx/tkMacOSXWm.c
@@ -13,7 +13,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkMacOSXWm.c,v 1.34 2006/05/16 06:55:06 das Exp $
+ * RCS: @(#) $Id: tkMacOSXWm.c,v 1.35 2006/05/16 07:37:17 das Exp $
*/
#include "tkMacOSXInt.h"
@@ -21,6 +21,19 @@
#include "tkMacOSXWm.h"
#include "tkMacOSXEvent.h"
+/* Define constants only available on Mac OS X 10.3 or later */
+#if !defined(MAC_OS_X_VERSION_10_3) || \
+ (MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_3)
+ #define kSimpleWindowClass 18
+ #define kWindowDoesNotCycleAttribute (1L << 15)
+#endif
+/* Define constants only available on Mac OS X 10.4 or later */
+#if !defined(MAC_OS_X_VERSION_10_4) || \
+ (MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_4)
+ #define kWindowNoTitleBarAttribute (1L << 9)
+ #define kWindowMetalNoContentSeparatorAttribute (1L << 11)
+#endif
+
/*
* This is a list of all of the toplevels that have been mapped so far. It is
* used by the menu code to inval windows that were damaged by menus, and will
@@ -875,7 +888,7 @@ Tcl_Obj *CONST objv[]; /* Argument objects. */
err = FSNewAlias(NULL, &ref, &alias);
if (err == noErr) {
err = SetWindowProxyAlias(macWindow, alias);
- DisposeHandle(alias);
+ DisposeHandle((Handle) alias);
}
#endif
}
@@ -1709,7 +1722,7 @@ Tcl_Obj *CONST objv[]; /* Argument objects. */
err = FSNewAlias(NULL, &ref, &alias);
if (err == noErr) {
err = SetWindowProxyAlias(macWindow, alias);
- DisposeHandle(alias);
+ DisposeHandle((Handle) alias);
}
#endif
} else {
@@ -4937,16 +4950,6 @@ TkMacOSXWinStyle(
char *strValue;
int intValue;
};
-#if !defined(MAC_OS_X_VERSION_10_3) || \
- (MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_3)
- #define kSimpleWindowClass 18
- #define kWindowDoesNotCycleAttribute (1L << 15)
-#endif
-#if !defined(MAC_OS_X_VERSION_10_4) || \
- (MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_4)
- #define kWindowNoTitleBarAttribute (1L << 9)
- #define kWindowMetalNoContentSeparatorAttribute (1L << 11)
-#endif
static CONST struct StrIntMap styleMap[] = {
{ "documentProc", documentProc },
{ "noGrowDocProc", documentProc },