summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXSysTray.c
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2020-10-31 00:40:07 (GMT)
committerKevin Walzer <kw@codebykevin.com>2020-10-31 00:40:07 (GMT)
commitb035da39030d25c3255122dfc40fde5f28eb007f (patch)
tree27051dde4b753c5d33823a5973df0a40847247b5 /macosx/tkMacOSXSysTray.c
parentdd234764ab7cbbd90bf98b361e335088763f7bfa (diff)
downloadtk-b035da39030d25c3255122dfc40fde5f28eb007f.zip
tk-b035da39030d25c3255122dfc40fde5f28eb007f.tar.gz
tk-b035da39030d25c3255122dfc40fde5f28eb007f.tar.bz2
This now builds on Catalina but still doesn't work
Diffstat (limited to 'macosx/tkMacOSXSysTray.c')
-rw-r--r--macosx/tkMacOSXSysTray.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/macosx/tkMacOSXSysTray.c b/macosx/tkMacOSXSysTray.c
index 9920001..2bf22a9 100644
--- a/macosx/tkMacOSXSysTray.c
+++ b/macosx/tkMacOSXSysTray.c
@@ -355,12 +355,13 @@ typedef TkStatusItem** StatusItemInfo;
willPresentNotification:(UNNotification *)notification
withCompletionHandler:(void (^)(UNNotificationPresentationOptions options))completionHandler
{
- if (@available(macOS 11.0, *)) {
+ #if MAC_OS_X_VERSION_MIN_REQUIRED >= 110000
completionHandler(UNNotificationPresentationOptionList |
UNNotificationPresentationOptionBanner);
- } else {
+ #endif
+ #if MAC_OS_X_VERSION_MIN_REQUIRED < 110000
completionHandler(UNNotificationPresentationOptionAlert);
- }
+ #endif
}
- (void) userNotificationCenter:(UNUserNotificationCenter *)center