Use the application name in the "About" item of the Apple menu.

To conform to Apple UI guidelines the application name should be included in
the "About" menu item label in the Apple menu.

See #12121.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65922 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2010-10-25 20:46:11 +00:00
parent fd7c5da65e
commit c8bef6e379

View File

@@ -521,7 +521,12 @@ void wxMenuBar::Init()
// recommended, sometimes these items really don't make sense.
if ( wxApp::s_macAboutMenuItemId != wxID_NONE )
{
m_appleMenu->Append( wxApp::s_macAboutMenuItemId, "About..." );
wxString aboutLabel("About");
if ( wxTheApp )
aboutLabel << ' ' << wxTheApp->GetAppDisplayName();
else
aboutLabel << "...";
m_appleMenu->Append( wxApp::s_macAboutMenuItemId, aboutLabel);
m_appleMenu->AppendSeparator();
}