From: Vadim Zeitlin Date: Mon, 25 Oct 2010 20:46:11 +0000 (+0000) Subject: Use the application name in the "About" item of the Apple menu. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/c8bef6e3791718544f7dfdccc857df3d9f397829?ds=sidebyside 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 --- diff --git a/src/osx/menu_osx.cpp b/src/osx/menu_osx.cpp index a33f2a466d..3c8220ef75 100644 --- a/src/osx/menu_osx.cpp +++ b/src/osx/menu_osx.cpp @@ -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(); }