* 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:
gcasa 2010-12-27 07:05:38 +00:00
parent 9fdac101e2
commit 74c604cbb0
5 changed files with 79 additions and 35 deletions

View file

@ -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;
}