summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXWindowEvent.c
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/tkMacOSXWindowEvent.c')
-rw-r--r--macosx/tkMacOSXWindowEvent.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/macosx/tkMacOSXWindowEvent.c b/macosx/tkMacOSXWindowEvent.c
index 87504b3..e6e27a4 100644
--- a/macosx/tkMacOSXWindowEvent.c
+++ b/macosx/tkMacOSXWindowEvent.c
@@ -808,6 +808,8 @@ ExposeRestrictProc(
NSWindow *w = [self window];
+ //remove private API calls here: not needed on systems >= 10.7
+ #if 0
if ([self isOpaque] && [w showsResizeIndicator]) {
NSRect bounds = [self convertRect:[w _growBoxRect] fromView:nil];
@@ -815,6 +817,7 @@ ExposeRestrictProc(
NSEraseRect(bounds);
}
}
+ #endif
CGFloat height = [self bounds].size.height;
HIMutableShapeRef drawShape = HIShapeCreateMutable();
@@ -948,6 +951,9 @@ ExposeRestrictProc(
@end
+/*Remove private/non-documented API calls. This is strongly discouraged by Apple and may lead to breakage in the future.*/
+
+#if 0
#pragma mark TKContentViewPrivate
/*
@@ -956,6 +962,7 @@ ExposeRestrictProc(
* Overrides NSView internals.
*/
+
@interface TKContentView(TKContentViewPrivate)
- (id) initWithFrame: (NSRect) frame;
- (void) _setAsideSubviews;
@@ -1094,6 +1101,9 @@ ExposeRestrictProc(
}
@end
+#endif
+
+
/*
* Local Variables: