]> git.saurik.com Git - wxWidgets.git/commitdiff
Use the application name in the "About" item of the Apple menu.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 25 Oct 2010 20:46:11 +0000 (20:46 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 25 Oct 2010 20:46:11 +0000 (20:46 +0000)
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

index a33f2a466db4faccbde605124b1ff0bac04fdb0f..3c8220ef75b15424962b5eb909499ef09bedd743 100644 (file)
@@ -521,7 +521,12 @@ void wxMenuBar::Init()
     // recommended, sometimes these items really don't make sense.
     if ( wxApp::s_macAboutMenuItemId != wxID_NONE )
     {
     // 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();
     }
 
         m_appleMenu->AppendSeparator();
     }