mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 16:30:53 +00:00
* Source/GSThemeMenu.m: Added implementation for
updateAllWindowsWithMenu:, updateMenu:forWindow:, altered implementation for setMenu:forWindow:, added private method _setMenu: to set the current menu on the window. * Source/GSWindowDecorationView.m: Changes to layout * Source/NSMenu.m: Only call the method updateAllWindowsWithMenu: when NSMenuInterfaceStyle = NSWindows95InterfaceStyle. * Source/NSMenuView.m: Change to -update so that it does not render the top bar of the menu if NSMenuInterfaceStyle = NSWindows95InterfaceStyle. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31782 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
9fdac101e2
commit
74c604cbb0
5 changed files with 79 additions and 35 deletions
|
@ -594,7 +594,12 @@ static NSMapTable *viewInfo = 0;
|
|||
/*
|
||||
* Ensure that a title view exists only if needed.
|
||||
*/
|
||||
if (_attachedMenu == nil)
|
||||
if (NSInterfaceStyleForKey(@"NSMenuInterfaceStyle", nil) ==
|
||||
NSWindows95InterfaceStyle)
|
||||
{
|
||||
needTitleView = NO;
|
||||
}
|
||||
else if (_attachedMenu == nil)
|
||||
{
|
||||
needTitleView = NO;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue