[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:
Fred Kiefer 2001-12-19 00:06:50 +00:00
parent 740307b774
commit 64bab8cfad

View file

@ -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];
/*