set transiency relation so that the WM can do better job of positioning the window

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27620 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2004-06-04 11:40:06 +00:00
parent 91cf58652e
commit 633c71efce
2 changed files with 8 additions and 0 deletions

View File

@@ -89,6 +89,10 @@ wxMessageDialog::wxMessageDialog(wxWindow *parent,
else
gtk_dialog_set_default_response(GTK_DIALOG(m_widget), GTK_RESPONSE_YES);
}
if (parent)
gtk_window_set_transient_for(GTK_WINDOW(m_widget),
GTK_WINDOW(m_parent->m_widget));
}
int wxMessageDialog::ShowModal()

View File

@@ -89,6 +89,10 @@ wxMessageDialog::wxMessageDialog(wxWindow *parent,
else
gtk_dialog_set_default_response(GTK_DIALOG(m_widget), GTK_RESPONSE_YES);
}
if (parent)
gtk_window_set_transient_for(GTK_WINDOW(m_widget),
GTK_WINDOW(m_parent->m_widget));
}
int wxMessageDialog::ShowModal()