diff options
author | culler <culler> | 2019-07-11 18:56:00 (GMT) |
---|---|---|
committer | culler <culler> | 2019-07-11 18:56:00 (GMT) |
commit | 03cded74665ad3a2b8c9ec3367d405c7c2adcd32 (patch) | |
tree | 054b307d87cfa6bbd4eea2b819a8c9e1cb3c7303 | |
parent | ddbd874d4ef144ee990d32d8c36fd24c4d7e18a9 (diff) | |
download | tk-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.c | 5 |
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; } |