git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35592
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
virtual void DoGetPosition(int* x, int* y) const;
private:
virtual void DoGetPosition(int* x, int* y) const;
private:
+#if wxCHECK_VERSION(2,7,0)
+ // DoDestroy() is not used anywhere else, DoCreate() should also be renamed
+ // in src/motif/dialog.cpp, frame.cpp and toplevel.cp
+ #error "Remove DoDestroy() and rename DoCreate() to XmDoCreateTLW(), they were only kept for binary backwards compatibility"
+#endif
+
// really create the Motif widget for TLW
// really create the Motif widget for TLW
- virtual bool XmDoCreateTLW(wxWindow* parent,
+ virtual bool DoCreate(wxWindow* parent,
wxWindowID id,
const wxString& title,
const wxPoint& pos,
wxWindowID id,
const wxString& title,
const wxPoint& pos,
long style,
const wxString& name) = 0;
long style,
const wxString& name) = 0;
+ virtual void DoDestroy() { }
-bool wxDialog::XmDoCreateTLW(wxWindow* parent,
+bool wxDialog::DoCreate(wxWindow* parent,
wxWindowID id,
const wxString& title,
const wxPoint& pos,
wxWindowID id,
const wxString& title,
const wxPoint& pos,
-bool wxFrame::XmDoCreateTLW(wxWindow* parent,
+bool wxFrame::DoCreate(wxWindow* parent,
wxWindowID id,
const wxString& title,
const wxPoint& pos,
wxWindowID id,
const wxString& title,
const wxPoint& pos,
m_windowId = ( id > -1 ) ? id : NewControlId();
m_windowId = ( id > -1 ) ? id : NewControlId();
- bool retval = XmDoCreateTLW( parent, id, title, pos, size, style, name );
+ bool retval = DoCreate( parent, id, title, pos, size, style, name );
if( !retval ) return false;
if( !retval ) return false;