summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorculler <culler>2019-07-11 18:56:00 (GMT)
committerculler <culler>2019-07-11 18:56:00 (GMT)
commit03cded74665ad3a2b8c9ec3367d405c7c2adcd32 (patch)
tree054b307d87cfa6bbd4eea2b819a8c9e1cb3c7303
parentddbd874d4ef144ee990d32d8c36fd24c4d7e18a9 (diff)
downloadtk-03cded74665ad3a2b8c9ec3367d405c7c2adcd32.zip
tk-03cded74665ad3a2b8c9ec3367d405c7c2adcd32.tar.gz
tk-03cded74665ad3a2b8c9ec3367d405c7c2adcd32.tar.bz2
Fix bug [67aa204e5b]: Make Aqua Ttk buttons display their pressed state again.
-rw-r--r--macosx/ttkMacOSXTheme.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/macosx/ttkMacOSXTheme.c b/macosx/ttkMacOSXTheme.c
index b58a743..50c79bb 100644
--- a/macosx/ttkMacOSXTheme.c
+++ b/macosx/ttkMacOSXTheme.c
@@ -1236,12 +1236,13 @@ static inline HIThemeButtonDrawInfo computeButtonDrawInfo(
SInt32 HIThemeState;
+ HIThemeState = Ttk_StateTableLookup(ThemeStateTable, state);
switch (params->kind) {
case kThemePushButton:
- HIThemeState = kThemeStateActive;
+ HIThemeState &= ~kThemeStateInactive;
+ HIThemeState |= kThemeStateActive;
break;
default:
- HIThemeState = Ttk_StateTableLookup(ThemeStateTable, state);
break;
}