avoid permanently frozen TLW when frozen child is destroyed with GTK+ 2.18

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63852 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett
2010-04-05 00:45:21 +00:00
parent 1237a25bc4
commit 2f55b88cb0

View File

@@ -2210,6 +2210,12 @@ wxWindowGTK::~wxWindowGTK()
// delete before the widgets to avoid a crash on solaris // delete before the widgets to avoid a crash on solaris
delete m_imData; delete m_imData;
// avoid problem with GTK+ 2.18 where a frozen window causes the whole
// TLW to be frozen, and if the window is then destroyed, nothing ever
// gets painted again
if (IsFrozen())
DoThaw();
if (m_widget) if (m_widget)
{ {
// Note that gtk_widget_destroy() does not destroy the widget, it just // Note that gtk_widget_destroy() does not destroy the widget, it just