// wxDialog
//-----------------------------------------------------------------------------
-IMPLEMENT_DYNAMIC_CLASS(wxDialog,wxTopLevelWindow)
-
void wxDialog::Init()
{
m_modalLoop = NULL;
if ( win )
win->GTKReleaseMouseAndNotify();
- wxWindow * const parent = GetParentForModalDialog(GetParent());
+ wxWindow * const parent = GetParentForModalDialog();
if ( parent )
{
gtk_window_set_transient_for( GTK_WINDOW(m_widget),