]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/dialog.cpp
Add some version checks to help compiling on OSX.
[wxWidgets.git] / src / gtk / dialog.cpp
index bb3fbd15861debc507680e88d388b7060126c23c..7fcfd47c56e7eb9304bb486c0e4903542753ff48 100644 (file)
@@ -32,8 +32,6 @@ wxDEFINE_TIED_SCOPED_PTR_TYPE(wxGUIEventLoop)
 // wxDialog
 //-----------------------------------------------------------------------------
 
-IMPLEMENT_DYNAMIC_CLASS(wxDialog,wxTopLevelWindow)
-
 void wxDialog::Init()
 {
     m_modalLoop = NULL;
@@ -111,7 +109,7 @@ int wxDialog::ShowModal()
     if ( win )
         win->GTKReleaseMouseAndNotify();
 
-    wxWindow * const parent = GetParentForModalDialog(GetParent());
+    wxWindow * const parent = GetParentForModalDialog();
     if ( parent )
     {
         gtk_window_set_transient_for( GTK_WINDOW(m_widget),