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:
@@ -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()
|
||||
|
@@ -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()
|
||||
|
Reference in New Issue
Block a user