X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8650108199bf799f21e29811cddaefd579c98c88..1722a3f626f7b29b42a22fc6329ce12fb5e8ed90:/src/gtk/dirdlg.cpp?ds=sidebyside diff --git a/src/gtk/dirdlg.cpp b/src/gtk/dirdlg.cpp index 16bd7a83fe..846948571b 100644 --- a/src/gtk/dirdlg.cpp +++ b/src/gtk/dirdlg.cpp @@ -108,20 +108,14 @@ wxDirDialog::wxDirDialog(wxWindow* parent, const wxString& title, return; } - GtkFileChooserAction gtk_action; GtkWindow* gtk_parent = NULL; if (parent) gtk_parent = GTK_WINDOW( gtk_widget_get_toplevel(parent->m_widget) ); - if (HasFlag(wxDD_DIR_MUST_EXIST)) - gtk_action = GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER; - else - gtk_action = GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER; - m_widget = gtk_file_chooser_dialog_new( wxGTK_CONV(m_message), gtk_parent, - gtk_action, + GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, NULL);