]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/dirdlg.cpp
Moved all the coordinate system calculation to wxDCBase
[wxWidgets.git] / src / gtk / dirdlg.cpp
index 7e75f051314503a21af3164ace7cd839f4cef8af..742961c9947035fd7ff76d6a28ecd042fa0b3f35 100644 (file)
@@ -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,