X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1bd568fa44a864a4110b13e8e0d08f923e5fb4ff..8064223b7b1b3657363b7a635c381b9269d95e55:/src/mac/carbon/aboutdlg.cpp?ds=sidebyside diff --git a/src/mac/carbon/aboutdlg.cpp b/src/mac/carbon/aboutdlg.cpp index 191598e543..243de8b7d7 100644 --- a/src/mac/carbon/aboutdlg.cpp +++ b/src/mac/carbon/aboutdlg.cpp @@ -30,10 +30,10 @@ #include "wx/mac/private.h" // helper class for HIAboutBox options -class AboutBoxOptions : public wxMacCFRefHolder +class AboutBoxOptions : public wxCFRef { public: - AboutBoxOptions() : wxMacCFRefHolder + AboutBoxOptions() : wxCFRef ( CFDictionaryCreateMutable ( @@ -48,7 +48,7 @@ public: void Set(CFStringRef key, const wxString& value) { - CFDictionarySetValue(*this, key, wxMacCFStringHolder(value)); + CFDictionarySetValue(*this, key, wxCFStringRef(value)); } }; @@ -69,7 +69,10 @@ void wxAboutBox(const wxAboutDialogInfo& info) opts.Set(kHIAboutBoxNameKey, info.GetName()); if ( info.HasVersion() ) - opts.Set(kHIAboutBoxVersionKey, info.GetVersion()); + { + opts.Set(kHIAboutBoxVersionKey, + wxString::Format(_("Version %s"), info.GetVersion())); + } if ( info.HasCopyright() ) opts.Set(kHIAboutBoxCopyrightKey, info.GetCopyright());