X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/489468feaa08b8f504735eecca522fb8d0f825d2..55410bb4f67febe1ca20654f078ea4fb9a6223ae:/src/osx/carbon/dirdlg.cpp?ds=inline diff --git a/src/osx/carbon/dirdlg.cpp b/src/osx/carbon/dirdlg.cpp index 5caa7f6b4b..157e07845d 100644 --- a/src/osx/carbon/dirdlg.cpp +++ b/src/osx/carbon/dirdlg.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: src/mac/carbon/dirdlg.cpp +// Name: src/osx/carbon/dirdlg.cpp // Purpose: wxDirDialog // Author: Stefan Csomor // Modified by: @@ -11,7 +11,7 @@ #include "wx/wxprec.h" -#if wxUSE_DIRDLG +#if wxUSE_DIRDLG && !defined(__WXUNIVERSAL__) #include "wx/dirdlg.h" @@ -23,13 +23,7 @@ #include "wx/filename.h" -#include "wx/mac/private.h" - -#ifdef __DARWIN__ - #include -#else - #include -#endif +#include "wx/osx/private.h" IMPLEMENT_CLASS(wxDirDialog, wxDialog) @@ -64,15 +58,17 @@ static pascal void NavEventProc( wxDirDialog::wxDirDialog(wxWindow *parent, const wxString& message, const wxString& defaultPath, - long WXUNUSED(style), + long style, const wxPoint& WXUNUSED(pos), const wxSize& WXUNUSED(size), const wxString& WXUNUSED(name)) { wxASSERT_MSG( NavServicesAvailable() , wxT("Navigation Services are not running") ) ; - m_message = message; m_parent = parent; - m_path = defaultPath; + + SetMessage( message ); + SetWindowStyle(style); + SetPath(defaultPath); } int wxDirDialog::ShowModal()