mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2026-09-10 07:46:51 -04:00
; Remove NS port toolbar styling code (bug#80307)
Reverts cbf9c58730.
* src/nsterm.m: Remove the code that calls setToolbarStyle.
This commit is contained in:
parent
2ac289d096
commit
050ca1a40f
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue