; Remove NS port toolbar styling code (bug#80307)

Reverts cbf9c58730.

* src/nsterm.m: Remove the code that calls setToolbarStyle.
This commit is contained in:
Alan Third 2026-06-14 15:09:28 +01:00
parent 2ac289d096
commit 050ca1a40f

View file

@ -9827,14 +9827,6 @@ - (instancetype) initWithEmacsFrame: (struct frame *) f
#ifdef NS_IMPL_COCOA #ifdef NS_IMPL_COCOA
if ([self respondsToSelector:@selector(setTabbingMode:)]) if ([self respondsToSelector:@selector(setTabbingMode:)])
[self setTabbingMode:NSWindowTabbingModeDisallowed]; [self setTabbingMode:NSWindowTabbingModeDisallowed];
#endif
/* Always show the toolbar below the window title. This is needed
on Mac OS 11+ where the toolbar style is decided by the system
(which is unpredictable) and the newfangled "compact" toolbar
may be chosen (which is undesirable). */
#if defined (NS_IMPL_COCOA) && MAC_OS_X_VERSION_MAX_ALLOWED >= 110000
if ([self respondsToSelector:@selector(setToolbarStyle:)])
[self setToolbarStyle: NSWindowToolbarStyleExpanded];
#endif #endif
} }