]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/dirdlg.cpp
wxDC::GetHandle support for wxMSW
[wxWidgets.git] / src / gtk / dirdlg.cpp
index 3843eb3ac500ae87db67361a1c8d898b6b75cc4b..a877cbabfe792bba816c8d49cdce2972837cb80d 100644 (file)
@@ -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));
     }
 }