From 38a14fe9268163570193226b9be7bf9091152f97 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 21 Jul 2007 01:26:42 +0000 Subject: [PATCH] always use GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER, independently of whether wxDD_MUST_EXIT flag is used, as the create folder dialog has confusing UI git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47605 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/dirdlg.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/gtk/dirdlg.cpp b/src/gtk/dirdlg.cpp index 16bd7a83fe..33821bda1a 100644 --- a/src/gtk/dirdlg.cpp +++ b/src/gtk/dirdlg.cpp @@ -113,15 +113,10 @@ wxDirDialog::wxDirDialog(wxWindow* parent, const wxString& title, 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); -- 2.47.2