]> 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 a96299c6f695ff2bea0eade74f93bb5ef17d39bd..de32c610dbd437546280f6370f78624700449cdb 100644 (file)
@@ -167,7 +167,7 @@ wxDirDialog::wxDirDialog(wxWindow* parent, const wxString& title,
 void wxDirDialog::OnFakeOk( wxCommandEvent &event )
 {
     if (!gtk_check_version(2,4,0))
 void wxDirDialog::OnFakeOk( wxCommandEvent &event )
 {
     if (!gtk_check_version(2,4,0))
-        wxDialog::OnOK( event );
+        EndDialog(wxID_OK);
     else
         wxGenericDirDialog::OnOK( event );
 }
     else
         wxGenericDirDialog::OnOK( event );
 }
@@ -202,7 +202,7 @@ void wxDirDialog::SetPath(const wxString& dir)
     {
         if (wxDirExists(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
         }
     }
     else