summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXWindowEvent.c
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2014-07-25 17:04:07 (GMT)
committerKevin Walzer <kw@codebykevin.com>2014-07-25 17:04:07 (GMT)
commit42ed9ac756fe0fedb878602d401c858c0117ea22 (patch)
tree383196bd9a75a5289049ae9ffdac57679a1ed1d0 /macosx/tkMacOSXWindowEvent.c
parentcf01a3d41c96d1af1d386e10947da402d4a43767 (diff)
downloadtk-42ed9ac756fe0fedb878602d401c858c0117ea22.zip
tk-42ed9ac756fe0fedb878602d401c858c0117ea22.tar.gz
tk-42ed9ac756fe0fedb878602d401c858c0117ea22.tar.bz2
Add copyright notice to Marc Culler for extensive patch to alpha rendering on Mac/Cocoa; remove private API calls to comply with platform requirements.
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: