diff options
author | Kevin Walzer <kw@codebykevin.com> | 2014-11-18 14:46:46 (GMT) |
---|---|---|
committer | Kevin Walzer <kw@codebykevin.com> | 2014-11-18 14:46:46 (GMT) |
commit | a3284c836bae48f2fcb6dd27ede98526a4e53fd0 (patch) | |
tree | 0abc8b043398f96c58d8c121f612826785a992be /macosx/tkMacOSXScrlbr.c | |
parent | bf8a23719fe88a38618840973f093d214ec93243 (diff) | |
download | tk-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.c | 8 |
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. |