summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2015-02-19 15:57:42 (GMT)
committerKevin Walzer <kw@codebykevin.com>2015-02-19 15:57:42 (GMT)
commit6af93817c23f883b7eae04ae854ef9076911800d (patch)
tree6aee1694b2626888217af94c8747b320ca2c092a /macosx
parentfcdf3b58096a569b0045c71e4644bf926f4f3f90 (diff)
downloadtk-6af93817c23f883b7eae04ae854ef9076911800d.zip
tk-6af93817c23f883b7eae04ae854ef9076911800d.tar.gz
tk-6af93817c23f883b7eae04ae854ef9076911800d.tar.bz2
Fix for Cocoa scrollbar appearance on 10.6
Diffstat (limited to 'macosx')
-rw-r--r--macosx/tkMacOSXScrlbr.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/macosx/tkMacOSXScrlbr.c b/macosx/tkMacOSXScrlbr.c
index 1fd931a..7370ff5 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;