summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXScrlbr.c
diff options
context:
space:
mode:
authorculler <culler>2020-06-25 21:13:06 (GMT)
committerculler <culler>2020-06-25 21:13:06 (GMT)
commitc39f5ebc7d27445e60fac3c51ba0b88034a00bff (patch)
tree3343d17d55644f6b10eae15826757e5c6e221e95 /macosx/tkMacOSXScrlbr.c
parent7a39ccec01ad0c3a6cc0f7fa1662f92f87c58dd1 (diff)
parent89f5a6802f0e3aa56d0f612913683dc432646bd0 (diff)
downloadtk-c39f5ebc7d27445e60fac3c51ba0b88034a00bff.zip
tk-c39f5ebc7d27445e60fac3c51ba0b88034a00bff.tar.gz
tk-c39f5ebc7d27445e60fac3c51ba0b88034a00bff.tar.bz2
Aqua: replace [NSApp macMinorVersion] by [NSApp macOSVersion] event though the Big Sur (11.1) beta release identifies itself as 10.16.
Diffstat (limited to 'macosx/tkMacOSXScrlbr.c')
-rw-r--r--macosx/tkMacOSXScrlbr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/macosx/tkMacOSXScrlbr.c b/macosx/tkMacOSXScrlbr.c
index a49ec55..3f73b18 100644
--- a/macosx/tkMacOSXScrlbr.c
+++ b/macosx/tkMacOSXScrlbr.c
@@ -316,7 +316,7 @@ TkpDisplayScrollbar(
if (SNOW_LEOPARD_STYLE) {
HIThemeDrawTrack(&msPtr->info, 0, dc.context,
kHIThemeOrientationInverted);
- } else if ([NSApp macMinorVersion] <= 8) {
+ } else if ([NSApp macOSVersion] <= 100800) {
HIThemeDrawTrack(&msPtr->info, 0, dc.context,
kHIThemeOrientationNormal);
} else {
@@ -377,7 +377,7 @@ TkpComputeScrollbarGeometry(
scrollPtr->highlightWidth = 0;
}
scrollPtr->inset = scrollPtr->highlightWidth + scrollPtr->borderWidth;
- if ([NSApp macMinorVersion] == 6) {
+ if ([NSApp macOSVersion] == 100600) {
scrollPtr->arrowLength = scrollPtr->width;
} else {
scrollPtr->arrowLength = 0;