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:
David Chisnall 2013-02-05 12:14:20 +00:00
parent 27897b75e8
commit 15a3aec436

View file

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