X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e1bf3ad3e8f34361824a801008d47833ac71dcb1..5e0526df034ebceefc8e6ab813e32e38a9ac90ff:/src/gtk1/msgdlg.cpp diff --git a/src/gtk1/msgdlg.cpp b/src/gtk1/msgdlg.cpp index 4ee201a9f2..4e3eb6d2ff 100644 --- a/src/gtk1/msgdlg.cpp +++ b/src/gtk1/msgdlg.cpp @@ -90,13 +90,22 @@ wxMessageDialog::wxMessageDialog(wxWindow *parent, gtk_dialog_set_default_response(GTK_DIALOG(m_widget), GTK_RESPONSE_YES); } - if (parent) + if (m_parent) gtk_window_set_transient_for(GTK_WINDOW(m_widget), GTK_WINDOW(m_parent->m_widget)); } +wxMessageDialog::~wxMessageDialog() +{ +} + int wxMessageDialog::ShowModal() { + // This should be necessary, but otherwise the + // parent TLW will disappear.. + if (m_parent) + gtk_window_present( GTK_WINDOW(m_parent->m_widget) ); + gint result = gtk_dialog_run(GTK_DIALOG(m_widget)); gtk_widget_destroy(m_widget); m_widget = NULL;