X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ff3e84ffdc91ee8a52b3ab646e48d44d62de80e1..758127221440af60e7416da0f2eb04579340fa6d:/src/gtk/dirdlg.cpp diff --git a/src/gtk/dirdlg.cpp b/src/gtk/dirdlg.cpp index cd9beb423a..de32c610db 100644 --- a/src/gtk/dirdlg.cpp +++ b/src/gtk/dirdlg.cpp @@ -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