mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +00:00
[setMainMenu:] set the title of the main menu window, so
the window manager can display it.We could do this also for all other menus, but those wont show up in the window manager. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11821 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
740307b774
commit
64bab8cfad
1 changed files with 3 additions and 0 deletions
|
@ -1765,6 +1765,9 @@ IF_NO_GC(NSAssert([event retainCount] > 0, NSInternalInconsistencyException));
|
|||
ASSIGN(_main_menu, aMenu);
|
||||
|
||||
[_main_menu setTitle: [[NSProcessInfo processInfo] processName]];
|
||||
// Set the title of the window also.
|
||||
// This wont be displayed, but the window manager may need it.
|
||||
[[_main_menu window] setTitle: [[NSProcessInfo processInfo] processName]];
|
||||
[[_main_menu window] setLevel: NSMainMenuWindowLevel];
|
||||
[_main_menu sizeToFit];
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue