replace templae Connect() overloads with separate Bind() method to improve compatibility (see #10000, closes #10477)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59134 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -34,6 +34,7 @@ public:
|
||||
wxPersistentWindowBase(wxWindow *win)
|
||||
: wxPersistentObject(win)
|
||||
{
|
||||
#if wxEVENTS_COMPATIBILITY_2_8
|
||||
win->Connect
|
||||
(
|
||||
wxEVT_DESTROY,
|
||||
@@ -42,6 +43,9 @@ public:
|
||||
NULL,
|
||||
this
|
||||
);
|
||||
#else // !wxEVENTS_COMPATIBILITY_2_8
|
||||
win->Bind(wxEVT_DESTROY, &wxPersistentWindowBase::HandleDestroy, this);
|
||||
#endif // wxEVENTS_COMPATIBILITY_2_8/!wxEVENTS_COMPATIBILITY_2_8
|
||||
}
|
||||
|
||||
virtual wxString GetName() const
|
||||
|
Reference in New Issue
Block a user