summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2015-02-19 15:57:33 (GMT)
committerKevin Walzer <kw@codebykevin.com>2015-02-19 15:57:33 (GMT)
commitd5447bcb92c651383abf748d089c79287e633710 (patch)
tree232a3918eb06222d341c754a8d2db7425e7ada5b
parentfe654c46dc6d3fe6d413014093b8430dc05f1276 (diff)
downloadtk-d5447bcb92c651383abf748d089c79287e633710.zip
tk-d5447bcb92c651383abf748d089c79287e633710.tar.gz
tk-d5447bcb92c651383abf748d089c79287e633710.tar.bz2
Fix for Cocoa scrollbar appearance on 10.6
-rw-r--r--macosx/tkMacOSXScrlbr.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/macosx/tkMacOSXScrlbr.c b/macosx/tkMacOSXScrlbr.c
index efa0f38..bc93b79 100644
--- a/macosx/tkMacOSXScrlbr.c
+++ b/macosx/tkMacOSXScrlbr.c
@@ -186,7 +186,15 @@ TkpDisplayScrollbar(
/*Update values and draw in native rect.*/
UpdateControlValues(scrollPtr);
+#if MAC_OS_X_VERSION_MIN_REQUIRED < 1070
+ if (scrollPtr->vertical) {
+ HIThemeDrawTrack (&info, 0, dc.context, kHIThemeOrientationNormal);
+ } else {
+ HIThemeDrawTrack (&info, 0, dc.context, kHIThemeOrientationInverted);
+ }
+#else
HIThemeDrawTrack (&info, 0, dc.context, kHIThemeOrientationNormal);
+#endif
TkMacOSXRestoreDrawingContext(&dc);
scrollPtr->flags &= ~REDRAW_PENDING;