Avoid error message when closing message

dialog with the X field from the WM.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30801 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling 2004-11-27 23:21:12 +00:00
parent c7f73af494
commit f1dec25f31
4 changed files with 12 additions and 0 deletions

View File

@ -31,6 +31,7 @@ public:
const wxString& caption = wxMessageBoxCaptionStr,
long style = wxOK|wxCENTRE,
const wxPoint& pos = wxDefaultPosition);
~wxMessageDialog();
int ShowModal();
virtual bool Show( bool WXUNUSED(show) = true ) { return false; };

View File

@ -31,6 +31,7 @@ public:
const wxString& caption = wxMessageBoxCaptionStr,
long style = wxOK|wxCENTRE,
const wxPoint& pos = wxDefaultPosition);
~wxMessageDialog();
int ShowModal();
virtual bool Show( bool WXUNUSED(show) = true ) { return false; };

View File

@ -95,6 +95,11 @@ wxMessageDialog::wxMessageDialog(wxWindow *parent,
GTK_WINDOW(m_parent->m_widget));
}
wxMessageDialog::~wxMessageDialog()
{
m_widget = NULL;
}
int wxMessageDialog::ShowModal()
{
gint result = gtk_dialog_run(GTK_DIALOG(m_widget));

View File

@ -95,6 +95,11 @@ wxMessageDialog::wxMessageDialog(wxWindow *parent,
GTK_WINDOW(m_parent->m_widget));
}
wxMessageDialog::~wxMessageDialog()
{
m_widget = NULL;
}
int wxMessageDialog::ShowModal()
{
gint result = gtk_dialog_run(GTK_DIALOG(m_widget));