Changes to set the window level of menu windows.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5224 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
David Lazaro Saz 1999-11-17 02:23:47 +00:00
parent fd88c789ac
commit 5f059afb86
3 changed files with 22 additions and 13 deletions

View file

@ -1302,11 +1302,13 @@ NSAssert([event retainCount] > 0, NSInternalInconsistencyException);
if (main_menu != nil && main_menu != aMenu)
{
[main_menu close];
[[main_menu window] setLevel: NSSubmenuWindowLevel];
}
ASSIGN(main_menu, aMenu);
[main_menu setTitle: [[NSProcessInfo processInfo] processName]];
[[main_menu window] setLevel: NSMainMenuWindowLevel];
[main_menu sizeToFit];
/*
* Find a menucell with the title Windows this is the default windows menu