]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/dirdlg.cpp
updates from Adrián González Alba
[wxWidgets.git] / src / gtk / dirdlg.cpp
index cd9beb423ab366eb3a09225e6dc1728518cc814b..18628f6086c576ee63beaa055bbc526d2c3a895f 100644 (file)
@@ -161,7 +161,6 @@ wxDirDialog::wxDirDialog(wxWindow* parent, const wxString& title,
                     wxConvFileName->cWX2MB(defaultPath) );
     }
     else
-#endif
         wxGenericDirDialog::Create(parent, title, defaultPath, style, pos, sz, name);
 }
 
@@ -203,7 +202,7 @@ void wxDirDialog::SetPath(const wxString& dir)
     {
         if (wxDirExists(dir))
         {
-            gtk_file_chooser_set_filename(GTK_FILE_CHOOSER(m_widget), wxConvFileName->cWX2MB(dir));
+            gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(m_widget), wxConvFileName->cWX2MB(dir));
         }
     }
     else