]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/dirdlg.cpp
Add wxBitmap(NSImage*) ctor to wxOSX.
[wxWidgets.git] / src / gtk / dirdlg.cpp
index de1449c750efb064bc8e0b813ce55ddf62e10c2a..7372b32300df2ad7c047596179d577c4c643a895 100644 (file)
 
 #include "wx/gtk/private.h"
 
-#ifdef __UNIX__
-#include <unistd.h> // chdir
-#endif
-
 extern "C" {
 static void gtk_dirdialog_response_callback(GtkWidget * WXUNUSED(w),
                                              gint response,
@@ -131,7 +127,7 @@ void wxDirDialog::GTKOnAccept()
     // change to the directory where the user went if asked
     if (HasFlag(wxDD_CHANGE_DIR))
     {
-        chdir(m_selectedDirectory.fn_str());
+        wxSetWorkingDirectory(m_selectedDirectory);
     }
 
     EndDialog(wxID_OK);