]> git.saurik.com Git - wxWidgets.git/commitdiff
Use conversion class in native GTK+ file dialog.
authorRobert Roebling <robert@roebling.de>
Sun, 27 Mar 2005 19:23:15 +0000 (19:23 +0000)
committerRobert Roebling <robert@roebling.de>
Sun, 27 Mar 2005 19:23:15 +0000 (19:23 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33107 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/filedlg.cpp
src/gtk1/filedlg.cpp

index 1240658ca2cdab2ede48d2971d7484f1a338cc98..c2dc478759e39805a9ec3c3407a4e4ced82fc674 100644 (file)
@@ -44,7 +44,7 @@ static void gtk_filedialog_ok_callback(GtkWidget *widget, wxFileDialog *dialog)
 {
     int style = dialog->GetStyle();
     gchar* text = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(widget));
-    wxString filename(wxGTK_CONV_BACK(text));
+    wxString filename = wxConvFileName->cMB2WX( text );
     if ( filename.empty() )
     {
         // this is totally lame but better than silent error
index 1240658ca2cdab2ede48d2971d7484f1a338cc98..c2dc478759e39805a9ec3c3407a4e4ced82fc674 100644 (file)
@@ -44,7 +44,7 @@ static void gtk_filedialog_ok_callback(GtkWidget *widget, wxFileDialog *dialog)
 {
     int style = dialog->GetStyle();
     gchar* text = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(widget));
-    wxString filename(wxGTK_CONV_BACK(text));
+    wxString filename = wxConvFileName->cMB2WX( text );
     if ( filename.empty() )
     {
         // this is totally lame but better than silent error