]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/filedlg.cpp
Rebake for 2.6.2
[wxWidgets.git] / src / gtk1 / filedlg.cpp
index 04040bd548ed0555849e2f6e55e728df38724953..1293d32fd3e1ff115736fad315f41d0ce1a27894 100644 (file)
@@ -39,7 +39,6 @@
 //-----------------------------------------------------------------------------
 
 extern void wxapp_install_idle_handler();
-extern bool g_isIdle;
 
 //-----------------------------------------------------------------------------
 // "clicked" for OK-button
@@ -156,7 +155,7 @@ wxFileDialog::wxFileDialog(wxWindow *parent, const wxString& message,
         GtkFileChooserAction gtk_action;
         GtkWindow* gtk_parent = NULL;
         if (parent)
-            gtk_parent = GTK_WINDOW(parent->m_widget);
+            gtk_parent = GTK_WINDOW( gtk_widget_get_toplevel(parent->m_widget) );
 
         gchar* ok_btn_stock;
         if ( style & wxSAVE )