diff options
author | Kevin Walzer <kw@codebykevin.com> | 2014-07-28 02:44:57 (GMT) |
---|---|---|
committer | Kevin Walzer <kw@codebykevin.com> | 2014-07-28 02:44:57 (GMT) |
commit | 704f4da6d29c93dbe99a10fe12e5939cbdbe2ee0 (patch) | |
tree | 641ce1d6fc66d418ec040244ff78297e680f97c8 /macosx/tkMacOSXScrlbr.c | |
parent | 5745a9089f71ed4095d6c508f0906ed64cb0b66f (diff) | |
download | tk-704f4da6d29c93dbe99a10fe12e5939cbdbe2ee0.zip tk-704f4da6d29c93dbe99a10fe12e5939cbdbe2ee0.tar.gz tk-704f4da6d29c93dbe99a10fe12e5939cbdbe2ee0.tar.bz2 |
Fine-tune scrolling, especially of text widgets with embedded windows, after removal of private API calls; performance is now better and within acceptable ranges.
Diffstat (limited to 'macosx/tkMacOSXScrlbr.c')
-rw-r--r-- | macosx/tkMacOSXScrlbr.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/macosx/tkMacOSXScrlbr.c b/macosx/tkMacOSXScrlbr.c index b8c73bd..0b4fa61 100644 --- a/macosx/tkMacOSXScrlbr.c +++ b/macosx/tkMacOSXScrlbr.c @@ -331,26 +331,6 @@ TkpDisplayScrollbar( frame = NSInsetRect(frame, scrollPtr->inset, scrollPtr->inset); frame.origin.y = viewHeight - (frame.origin.y + frame.size.height); - NSWindow *w = [view window]; - - //This uses a private API call that is no longer needed on systems >= 10.7. - #if 0 - if ([w showsResizeIndicator]) { - NSRect growBox = [view convertRect:[w _growBoxRect] fromView:nil]; - - if (NSIntersectsRect(growBox, frame)) { - if (scrollPtr->vertical) { - CGFloat y = frame.origin.y; - - frame.origin.y = growBox.origin.y + growBox.size.height; - frame.size.height -= frame.origin.y - y; - } else { - frame.size.width = growBox.origin.x - frame.origin.x; - } - TkMacOSXSetScrollbarGrow(winPtr, true); - } - } - #endif if (!NSEqualRects(frame, [scroller frame])) { [scroller setFrame:frame]; } |