summaryrefslogtreecommitdiffstats
path: root/macosx
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)
commit2889c21f06d4a1042a9e42ddbc582e85cc0d3c3f (patch)
treea52df8e6b85366b47a27f187a24127c8481704d5 /macosx
parent85a2a651bd79c8d724f04ecec7439b7b4332ee3e (diff)
downloadtk-2889c21f06d4a1042a9e42ddbc582e85cc0d3c3f.zip
tk-2889c21f06d4a1042a9e42ddbc582e85cc0d3c3f.tar.gz
tk-2889c21f06d4a1042a9e42ddbc582e85cc0d3c3f.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 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;