From c8bef6e3791718544f7dfdccc857df3d9f397829 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 25 Oct 2010 20:46:11 +0000 Subject: [PATCH 1/1] 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 --- src/osx/menu_osx.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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(); } -- 2.45.2