X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/489468feaa08b8f504735eecca522fb8d0f825d2..85c04b8fb5e3cb5f8fd5fdf437476dfc9edfecc5:/src/osx/carbon/aboutdlg.cpp diff --git a/src/osx/carbon/aboutdlg.cpp b/src/osx/carbon/aboutdlg.cpp index 243de8b7d7..51b40889b0 100644 --- a/src/osx/carbon/aboutdlg.cpp +++ b/src/osx/carbon/aboutdlg.cpp @@ -27,7 +27,7 @@ #include "wx/aboutdlg.h" #include "wx/generic/aboutdlgg.h" -#include "wx/mac/private.h" +#include "wx/osx/private.h" // helper class for HIAboutBox options class AboutBoxOptions : public wxCFRef @@ -56,12 +56,12 @@ public: // implementation // ============================================================================ -void wxAboutBox(const wxAboutDialogInfo& info) +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 // description but if we have anything else we must use the generic version -#ifndef __LP64__ + if ( info.IsSimple() ) { AboutBoxOptions opts; @@ -69,23 +69,19 @@ void wxAboutBox(const wxAboutDialogInfo& info) 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.GetCopyright()); + opts.Set(kHIAboutBoxCopyrightKey, info.GetCopyrightToDisplay()); opts.Set(kHIAboutBoxDescriptionKey, info.GetDescriptionAndCredits()); HIAboutBox(opts); } else // simple "native" version is not enough -#endif { // we need to use the full-blown generic version - wxGenericAboutBox(info); + wxGenericAboutBox(info, parent); } }