mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 07:00:37 +00:00
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:
parent
fd88c789ac
commit
5f059afb86
3 changed files with 22 additions and 13 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue