]> git.saurik.com Git - wxWidgets.git/commitdiff
temporarily reverted binary backwards incompatible DoCreate to XmDoCreateTLW renaming
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 19 Sep 2005 10:36:18 +0000 (10:36 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 19 Sep 2005 10:36:18 +0000 (10:36 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35592 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/motif/toplevel.h
src/motif/dialog.cpp
src/motif/frame.cpp
src/motif/toplevel.cpp

index 061d263dc46d848664d806a987b6f6a755793265..700e52a40f7b84fd06bbd9a5512efa31e270acca 100644 (file)
@@ -72,8 +72,14 @@ protected:
     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
-    virtual bool XmDoCreateTLW(wxWindow* parent,
+    virtual bool DoCreate(wxWindow* parent,
                                wxWindowID id,
                                const wxString& title,
                                const wxPoint& pos,
@@ -81,6 +87,7 @@ private:
                                long style,
                                const wxString& name) = 0;
 
+    virtual void DoDestroy() { }
 
     wxString m_title;
 };
index dae891831bc823f1181c09325e440178f12af83a..4be633c308e1167281f0ba88a96b30c5bce6351c 100644 (file)
@@ -151,7 +151,7 @@ bool wxDialog::Create(wxWindow *parent, wxWindowID id,
     return true;
 }
 
-bool wxDialog::XmDoCreateTLW(wxWindow* parent,
+bool wxDialog::DoCreate(wxWindow* parent,
                              wxWindowID id,
                              const wxString& title,
                              const wxPoint& pos,
index f17078a2d5fc621d591af250c60d2c37dd882de5..405396ce94fe43064c948c453bc4af3aa8e066ef 100644 (file)
@@ -196,7 +196,7 @@ bool wxFrame::Create(wxWindow *parent,
     return true;
 }
 
-bool wxFrame::XmDoCreateTLW(wxWindow* parent,
+bool wxFrame::DoCreate(wxWindow* parent,
                             wxWindowID id,
                             const wxString& title,
                             const wxPoint& pos,
index 59343183b564f12c7c0d8f7ccab1b94a7bda7b78..a1df9f3b1058aa338faf7d50b8361ef4c49661a4 100644 (file)
@@ -121,7 +121,7 @@ bool wxTopLevelWindowMotif::Create( wxWindow *parent, wxWindowID id,
 
     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;