///////////////////////////////////////////////////////////////////////////////
-// Name: mac/carbon/aboutdlg.cpp
+// Name: osx/carbon/aboutdlg.cpp
// Purpose: native wxAboutBox() implementation for wxMac
// Author: Vadim Zeitlin
// Created: 2006-10-08
// 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
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());
else // simple "native" version is not enough
{
// we need to use the full-blown generic version
- wxGenericAboutBox(info);
+ wxGenericAboutBox(info, parent);
}
}