]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/dirdlg.cpp
Do not define __VISUALC__ for Intel C++ compiler under Windows.
[wxWidgets.git] / src / gtk / dirdlg.cpp
index 71d0ed409543a87e34c776ea579945d456911ebc..e42d66da42fe7367db9b98266a1d7552ce19a245 100644 (file)
@@ -2,7 +2,6 @@
 // Name:        src/gtk/dirdlg.cpp
 // Purpose:     native implementation of wxDirDialog
 // Author:      Robert Roebling, Zbigniew Zagorski, Mart Raudsepp, Francesco Montorsi
-// Id:          $Id$
 // Copyright:   (c) 1998 Robert Roebling, 2004 Zbigniew Zagorski, 2005 Mart Raudsepp
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 #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 +126,7 @@ void wxDirDialog::GTKOnAccept()
     // change to the directory where the user went if asked
     if (HasFlag(wxDD_CHANGE_DIR))
     {
-        chdir(m_selectedDirectory);
+        wxSetWorkingDirectory(m_selectedDirectory);
     }
 
     EndDialog(wxID_OK);