summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXScrlbr.c
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2014-11-18 14:46:46 (GMT)
committerKevin Walzer <kw@codebykevin.com>2014-11-18 14:46:46 (GMT)
commita3284c836bae48f2fcb6dd27ede98526a4e53fd0 (patch)
tree0abc8b043398f96c58d8c121f612826785a992be /macosx/tkMacOSXScrlbr.c
parentbf8a23719fe88a38618840973f093d214ec93243 (diff)
downloadtk-a3284c836bae48f2fcb6dd27ede98526a4e53fd0.zip
tk-a3284c836bae48f2fcb6dd27ede98526a4e53fd0.tar.gz
tk-a3284c836bae48f2fcb6dd27ede98526a4e53fd0.tar.bz2
Remove residual private API calls from Tk/Mac after Mac App Store review flagged them as being present.
Diffstat (limited to 'macosx/tkMacOSXScrlbr.c')
-rw-r--r--macosx/tkMacOSXScrlbr.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/macosx/tkMacOSXScrlbr.c b/macosx/tkMacOSXScrlbr.c
index ebb99f3..00f6088 100644
--- a/macosx/tkMacOSXScrlbr.c
+++ b/macosx/tkMacOSXScrlbr.c
@@ -50,11 +50,15 @@ NSRect TkMacOSXGetScrollFrame(TkScrollbar *scrlPtr);
NSRect Tkframe = TkMacOSXGetScrollFrame(scrollPtr);
/* Do not draw if the widget is misplaced or unmapped. */
if ( NSIsEmptyRect(Tkframe) ||
- ! macWin->winPtr->flags & TK_MAPPED ||
- ! NSEqualRects(Tkframe, [self frame])
+ ! (macWin->winPtr->flags & TK_MAPPED)
) {
return;
}
+ for (Tk_Window parent_win = tkwin; parent_win != NULL;parent_win = Tk_Parent(parent_win)) {
+ if (!Tk_IsMapped(parent_win)) {
+ return;
+ }
+ }
/*
* Do not draw if the widget is completely outside of its parent.