From: Robert Roebling Date: Sun, 27 Mar 2005 19:23:15 +0000 (+0000) Subject: Use conversion class in native GTK+ file dialog. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/2f025841eeee2a4496d227dd4f70842e14bc019d?ds=sidebyside Use conversion class in native GTK+ file dialog. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33107 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/filedlg.cpp b/src/gtk/filedlg.cpp index 1240658ca2..c2dc478759 100644 --- a/src/gtk/filedlg.cpp +++ b/src/gtk/filedlg.cpp @@ -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 diff --git a/src/gtk1/filedlg.cpp b/src/gtk1/filedlg.cpp index 1240658ca2..c2dc478759 100644 --- a/src/gtk1/filedlg.cpp +++ b/src/gtk1/filedlg.cpp @@ -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