From: Vadim Zeitlin Date: Sun, 26 Apr 2009 14:59:36 +0000 (+0000) Subject: added missing parent parameter to Cocoa version of wxAboutBox(); also pass it to... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7d7cb80036e7cf1421d751f74528f660f9c90a33?ds=inline added missing parent parameter to Cocoa version of wxAboutBox(); also pass it to the generic version in both Cocoa and Carbon versions git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60403 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/osx/carbon/aboutdlg.cpp b/src/osx/carbon/aboutdlg.cpp index 81cff671e5..bbe9f1f8f3 100644 --- a/src/osx/carbon/aboutdlg.cpp +++ b/src/osx/carbon/aboutdlg.cpp @@ -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 @@ -84,7 +84,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); } } diff --git a/src/osx/cocoa/aboutdlg.mm b/src/osx/cocoa/aboutdlg.mm index 9c702e9d55..9c1b0a664d 100644 --- a/src/osx/cocoa/aboutdlg.mm +++ b/src/osx/cocoa/aboutdlg.mm @@ -72,7 +72,7 @@ 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 @@ -101,7 +101,7 @@ void wxAboutBox(const wxAboutDialogInfo& info) else // simple "native" version is not enough { // we need to use the full-blown generic version - wxGenericAboutBox(info); + wxGenericAboutBox(info, parent); } }