X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e808cf8a0a77ced81143e9b27283a3b2a907a747..092793cb6d3de368ec51ed0e38faeed3989f2f33:/src/gtk/dirdlg.cpp diff --git a/src/gtk/dirdlg.cpp b/src/gtk/dirdlg.cpp index 70faf33d0c..742961c994 100644 --- a/src/gtk/dirdlg.cpp +++ b/src/gtk/dirdlg.cpp @@ -72,8 +72,6 @@ static void gtk_dirdialog_response_callback(GtkWidget *w, gint response, wxDirDialog *dialog) { - wxapp_install_idle_handler(); - if (response == GTK_RESPONSE_ACCEPT) gtk_dirdialog_ok_callback(w, dialog); else // GTK_RESPONSE_CANCEL or GTK_RESPONSE_NONE @@ -99,7 +97,8 @@ wxDirDialog::wxDirDialog(wxWindow* parent, const wxString& title, if (!gtk_check_version(2,4,0)) { m_message = title; - m_needParent = false; + + parent = GetParentForModalDialog(parent); if (!PreCreation(parent, pos, wxDefaultSize) || !CreateBase(parent, wxID_ANY, pos, wxDefaultSize, style, @@ -115,7 +114,7 @@ wxDirDialog::wxDirDialog(wxWindow* parent, const wxString& title, 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; + gtk_action = GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER; else gtk_action = GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER;