X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/633c71efce4e8a3c0f848282d09ac14d78f6a1cd..a83ea9c15a7ac7bbdc6686164cfcbbc21ae5031a:/src/gtk1/msgdlg.cpp?ds=sidebyside diff --git a/src/gtk1/msgdlg.cpp b/src/gtk1/msgdlg.cpp index 250c879881..6ca4915481 100644 --- a/src/gtk1/msgdlg.cpp +++ b/src/gtk1/msgdlg.cpp @@ -22,10 +22,10 @@ #if wxUSE_MSGDLG && defined(__WXGTK20__) && !defined(__WXGPE__) +#include "wx/msgdlg.h" #include "wx/gtk/private.h" #include -#include "wx/msgdlg.h" #include "wx/intl.h" IMPLEMENT_CLASS(wxMessageDialog, wxDialog) @@ -95,6 +95,10 @@ wxMessageDialog::wxMessageDialog(wxWindow *parent, GTK_WINDOW(m_parent->m_widget)); } +wxMessageDialog::~wxMessageDialog() +{ +} + int wxMessageDialog::ShowModal() { gint result = gtk_dialog_run(GTK_DIALOG(m_widget)); @@ -108,6 +112,8 @@ int wxMessageDialog::ShowModal() // fall through case GTK_RESPONSE_CANCEL: + case GTK_RESPONSE_DELETE_EVENT: + case GTK_RESPONSE_CLOSE: return wxID_CANCEL; case GTK_RESPONSE_OK: return wxID_OK;