summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXEvent.h
diff options
context:
space:
mode:
authorhobbs <hobbs>2005-12-01 06:24:16 (GMT)
committerhobbs <hobbs>2005-12-01 06:24:16 (GMT)
commit4cd04ee31b81888a78ef6b97278b638d473bb7b4 (patch)
tree5d69b61049ff2295107776b3032a45ff78413b50 /macosx/tkMacOSXEvent.h
parentf1db646ab6e4c24d6eb94aa7e5aeaf0d87b1b688 (diff)
downloadtk-4cd04ee31b81888a78ef6b97278b638d473bb7b4.zip
tk-4cd04ee31b81888a78ef6b97278b638d473bb7b4.tar.gz
tk-4cd04ee31b81888a78ef6b97278b638d473bb7b4.tar.bz2
* macosx/tkMacOSXXStubs.c (TkpOpenDisplay, TkMacOSXDisplayChanged):
* macosx/tkMacOSXWindowEvent.c (TkMacOSXProcessApplicationEvent): * macosx/tkMacOSXCarbonEvents.c (TkMacOSXInitCarbonEvents): * macosx/tkMacOSXEvent.h: Trap kEventAppAvailableWindowBoundsChanged * macosx/tkMacOSXInt.h: event to watch for change in display size and adjust internal state appropriately.
Diffstat (limited to 'macosx/tkMacOSXEvent.h')
-rw-r--r--macosx/tkMacOSXEvent.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/macosx/tkMacOSXEvent.h b/macosx/tkMacOSXEvent.h
index 2d27faf..c52e1ec 100644
--- a/macosx/tkMacOSXEvent.h
+++ b/macosx/tkMacOSXEvent.h
@@ -50,7 +50,7 @@
* software in accordance with the terms specified in this
* license.
*
- * RCS: @(#) $Id: tkMacOSXEvent.h,v 1.6 2005/11/27 02:36:15 das Exp $
+ * RCS: @(#) $Id: tkMacOSXEvent.h,v 1.7 2005/12/01 06:24:16 hobbs Exp $
*/
#ifndef _TKMACEVENT
@@ -99,5 +99,10 @@ MODULE_SCOPE int TkMacOSXKeycodeToUnicode(
MODULE_SCOPE OSStatus TkMacOSXStartTclEventLoopCarbonTimer();
MODULE_SCOPE OSStatus TkMacOSXStopTclEventLoopCarbonTimer();
+#if !defined(MAC_OS_X_VERSION_10_3) || \
+ (MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_3)
+/* Define constants only available on Mac OS X 10.3 or later */
+enum { kEventAppAvailableWindowBoundsChanged = 110 };
+#endif
#endif