mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 17:52:42 +00:00
When displaying the horizontal menu, set the title of the main menu to the name
of the application, not the name of the process, if the info bundle contains an application name. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36060 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
27897b75e8
commit
15a3aec436
1 changed files with 6 additions and 1 deletions
|
@ -265,7 +265,12 @@ static BOOL menuBarVisible = YES;
|
|||
NSMenu *appMenu;
|
||||
id <NSMenuItem> appItem;
|
||||
|
||||
appTitle = [[NSProcessInfo processInfo] processName];
|
||||
appTitle = [[[NSBundle mainBundle] localizedInfoDictionary]
|
||||
objectForKey: @"ApplicationName"];
|
||||
if (nil == appTitle)
|
||||
{
|
||||
appTitle = [[NSProcessInfo processInfo] processName];
|
||||
}
|
||||
appItem = [self itemWithTitle: appTitle];
|
||||
appMenu = [appItem submenu];
|
||||
|
||||
|
|
Loading…
Reference in a new issue