- wxWindow *parent = wxTheApp->GetTopWindow();
- wxWindow * const parent = GetParentForModalDialog();
- if ( parent && parent != this )
- {
- m_parent = parent;
- gtk_window_set_transient_for( GTK_WINDOW(m_widget), GTK_WINDOW(parent->m_widget) );
- }