X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c173e541b8ffb01ad0992a4f4c991be9e95db2ba..cd95f7e65c4e1ee61a5d90eb13687ff468cb13ad:/src/osx/carbon/aboutdlg.cpp diff --git a/src/osx/carbon/aboutdlg.cpp b/src/osx/carbon/aboutdlg.cpp index 81cff671e5..73696ef63d 100644 --- a/src/osx/carbon/aboutdlg.cpp +++ b/src/osx/carbon/aboutdlg.cpp @@ -1,5 +1,5 @@ /////////////////////////////////////////////////////////////////////////////// -// Name: mac/carbon/aboutdlg.cpp +// Name: osx/carbon/aboutdlg.cpp // Purpose: native wxAboutBox() implementation for wxMac // Author: Vadim Zeitlin // Created: 2006-10-08 @@ -56,7 +56,7 @@ public: // implementation // ============================================================================ -void wxAboutBox(const wxAboutDialogInfo& info, wxWindow* WXUNUSED(parent)) +void wxAboutBox(const wxAboutDialogInfo& info, wxWindow *parent) { // Mac native about box currently can show only name, version, copyright // and description fields and we also shoehorn the credits text into the @@ -69,10 +69,7 @@ void wxAboutBox(const wxAboutDialogInfo& info, wxWindow* WXUNUSED(parent)) opts.Set(kHIAboutBoxNameKey, info.GetName()); if ( info.HasVersion() ) - { - opts.Set(kHIAboutBoxVersionKey, - wxString::Format(_("Version %s"), info.GetVersion())); - } + opts.Set(kHIAboutBoxVersionKey,info.GetLongVersion()); if ( info.HasCopyright() ) opts.Set(kHIAboutBoxCopyrightKey, info.GetCopyrightToDisplay()); @@ -84,7 +81,7 @@ void wxAboutBox(const wxAboutDialogInfo& info, wxWindow* WXUNUSED(parent)) else // simple "native" version is not enough { // we need to use the full-blown generic version - wxGenericAboutBox(info); + wxGenericAboutBox(info, parent); } }