]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/dirdlg.cpp
no real changes, just use IsSingle/MultiLine() insteadof testing m_windowStyle directly
[wxWidgets.git] / src / gtk / dirdlg.cpp
index cd9beb423ab366eb3a09225e6dc1728518cc814b..de32c610dbd437546280f6370f78624700449cdb 100644 (file)
@@ -161,14 +161,13 @@ wxDirDialog::wxDirDialog(wxWindow* parent, const wxString& title,
                     wxConvFileName->cWX2MB(defaultPath) );
     }
     else
-#endif
         wxGenericDirDialog::Create(parent, title, defaultPath, style, pos, sz, name);
 }
 
 void wxDirDialog::OnFakeOk( wxCommandEvent &event )
 {
     if (!gtk_check_version(2,4,0))
-        wxDialog::OnOK( event );
+        EndDialog(wxID_OK);
     else
         wxGenericDirDialog::OnOK( event );
 }
@@ -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