aboutsummaryrefslogtreecommitdiffstats
path: root/ui/macosx/cocoa_bridge.mm
diff options
context:
space:
mode:
authorRoland Knall <rknall@gmail.com>2018-11-01 12:09:02 +0100
committerRoland Knall <rknall@gmail.com>2018-11-01 15:02:36 +0000
commit5769a72963210da88551fbd7c553c1e2d82a7a0b (patch)
treed3b7e6eb709d5dab0f5136128b9123fb2fbfbda5 /ui/macosx/cocoa_bridge.mm
parent7306e2b8ee1231f2b889547dc75be54463c14d8d (diff)
macOs: Fix build fix for tab view
Fix the build for displaying the tabs wrongly on mac Change-Id: I58265b7cf9a4758885ef1add13417c42a467be9d Reviewed-on: https://code.wireshark.org/review/30462 Petri-Dish: Roland Knall <rknall@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Roland Knall <rknall@gmail.com>
Diffstat (limited to 'ui/macosx/cocoa_bridge.mm')
-rw-r--r--ui/macosx/cocoa_bridge.mm5
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/macosx/cocoa_bridge.mm b/ui/macosx/cocoa_bridge.mm
index 4423bed61d..0848b29d85 100644
--- a/ui/macosx/cocoa_bridge.mm
+++ b/ui/macosx/cocoa_bridge.mm
@@ -11,6 +11,7 @@
*/
#include <ui/macosx/cocoa_bridge.h>
+#include <ui/macosx/macos_compat.h>
#import <Cocoa/Cocoa.h>
@@ -20,8 +21,8 @@ void CocoaBridge::cleanOSGeneratedMenuItems()
// Remove (don't allow) the "Show Tab Bar" menu item from the "View" menu, if
// supported
- if ([NSWindow respondsToSelector:@selector(allowsAutomaticWindowTabbing)])
- NSWindow.allowsAutomaticWindowTabbing = NO;
+ if ([NSWindow respondsToSelector:@selector(setAllowsAutomaticWindowTabbing:)])
+ [NSWindow setAllowsAutomaticWindowTabbing: NO];
#endif
[[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"NSFullScreenMenuItemEverywhere"];