X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e3f54c8f7c20587c81726cd5f4b90e659f818bbe..6d4b1e2759abc6da2cc163d81b63a457b2bef0b0:/src/gtk/dirdlg.cpp diff --git a/src/gtk/dirdlg.cpp b/src/gtk/dirdlg.cpp index 3843eb3ac5..a877cbabfe 100644 --- a/src/gtk/dirdlg.cpp +++ b/src/gtk/dirdlg.cpp @@ -157,7 +157,8 @@ bool wxDirDialog::Create(wxWindow* parent, if ( !defaultPath.empty() ) gtk_file_chooser_set_current_folder( GTK_FILE_CHOOSER(m_widget), - defaultPath.fn_str() ); + wxGTK_CONV_FN(defaultPath) ); + return true; } @@ -179,7 +180,7 @@ void wxDirDialog::SetPath(const wxString& dir) if (wxDirExists(dir)) { gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(m_widget), - dir.fn_str()); + wxGTK_CONV_FN(dir)); } }