From 89831b54e6f5bc54d375d306b91003bf247a3db9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?W=C5=82odzimierz=20Skiba?= Date: Fri, 14 Apr 2006 19:32:51 +0000 Subject: [PATCH] Deprecated and obsolete parts marked up for backward compatibility. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38722 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/os2/dialog.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/os2/dialog.cpp b/src/os2/dialog.cpp index 5b76f3ca10..06f4e62c67 100644 --- a/src/os2/dialog.cpp +++ b/src/os2/dialog.cpp @@ -130,6 +130,8 @@ bool wxDialog::Create( wxWindow* pParent, return true; } // end of wxDialog::Create +#if WXWIN_COMPATIBILITY_2_6 + // deprecated ctor wxDialog::wxDialog(wxWindow *parent, const wxString& title, @@ -146,13 +148,13 @@ wxDialog::wxDialog(wxWindow *parent, Create(parent, wxID_ANY, title, wxPoint(x, y), wxSize(w, h), style, name); } -void wxDialog::SetModal( - bool WXUNUSED(bFlag) -) +void wxDialog::SetModal(bool WXUNUSED(bFlag)) { // nothing to do, obsolete method } // end of wxDialog::SetModal +#endif // WXWIN_COMPATIBILITY_2_6 + wxDialog::~wxDialog() { m_isBeingDeleted = true; @@ -199,11 +201,14 @@ void wxDialog::OnCharHook( // showing the dialogs // ---------------------------------------------------------------------------- +#if WXWIN_COMPATIBILITY_2_6 + bool wxDialog::IsModalShowing() const { return IsModal(); } // end of wxDialog::IsModalShowing +#endif // WXWIN_COMPATIBILITY_2_6 wxWindow *wxDialog::FindSuitableParent() const { -- 2.45.2