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:
@@ -31,6 +31,7 @@ public:
|
|||||||
const wxString& caption = wxMessageBoxCaptionStr,
|
const wxString& caption = wxMessageBoxCaptionStr,
|
||||||
long style = wxOK|wxCENTRE,
|
long style = wxOK|wxCENTRE,
|
||||||
const wxPoint& pos = wxDefaultPosition);
|
const wxPoint& pos = wxDefaultPosition);
|
||||||
|
~wxMessageDialog();
|
||||||
|
|
||||||
int ShowModal();
|
int ShowModal();
|
||||||
virtual bool Show( bool WXUNUSED(show) = true ) { return false; };
|
virtual bool Show( bool WXUNUSED(show) = true ) { return false; };
|
||||||
|
@@ -31,6 +31,7 @@ public:
|
|||||||
const wxString& caption = wxMessageBoxCaptionStr,
|
const wxString& caption = wxMessageBoxCaptionStr,
|
||||||
long style = wxOK|wxCENTRE,
|
long style = wxOK|wxCENTRE,
|
||||||
const wxPoint& pos = wxDefaultPosition);
|
const wxPoint& pos = wxDefaultPosition);
|
||||||
|
~wxMessageDialog();
|
||||||
|
|
||||||
int ShowModal();
|
int ShowModal();
|
||||||
virtual bool Show( bool WXUNUSED(show) = true ) { return false; };
|
virtual bool Show( bool WXUNUSED(show) = true ) { return false; };
|
||||||
|
@@ -95,6 +95,11 @@ wxMessageDialog::wxMessageDialog(wxWindow *parent,
|
|||||||
GTK_WINDOW(m_parent->m_widget));
|
GTK_WINDOW(m_parent->m_widget));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wxMessageDialog::~wxMessageDialog()
|
||||||
|
{
|
||||||
|
m_widget = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
int wxMessageDialog::ShowModal()
|
int wxMessageDialog::ShowModal()
|
||||||
{
|
{
|
||||||
gint result = gtk_dialog_run(GTK_DIALOG(m_widget));
|
gint result = gtk_dialog_run(GTK_DIALOG(m_widget));
|
||||||
|
@@ -95,6 +95,11 @@ wxMessageDialog::wxMessageDialog(wxWindow *parent,
|
|||||||
GTK_WINDOW(m_parent->m_widget));
|
GTK_WINDOW(m_parent->m_widget));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wxMessageDialog::~wxMessageDialog()
|
||||||
|
{
|
||||||
|
m_widget = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
int wxMessageDialog::ShowModal()
|
int wxMessageDialog::ShowModal()
|
||||||
{
|
{
|
||||||
gint result = gtk_dialog_run(GTK_DIALOG(m_widget));
|
gint result = gtk_dialog_run(GTK_DIALOG(m_widget));
|
||||||
|
Reference in New Issue
Block a user