X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/701a0b4766abbd9f2f8dee036004d77edc59c4d8..f94a790dafd54c290618c97cb3d4feffc400fd15:/src/common/radiocmn.cpp diff --git a/src/common/radiocmn.cpp b/src/common/radiocmn.cpp index 66254736c6..bf88463af5 100644 --- a/src/common/radiocmn.cpp +++ b/src/common/radiocmn.cpp @@ -134,5 +134,38 @@ int wxRadioBoxBase::GetNextItem(int item, wxDirection dir, long style) const return item; } +#if WXWIN_COMPATIBILITY_2_4 + +// these functions are deprecated and don't do anything +int wxRadioBoxBase::GetNumberOfRowsOrCols() const +{ + return 1; +} + +void wxRadioBoxBase::SetNumberOfRowsOrCols(int WXUNUSED(n)) +{ +} + +#endif // WXWIN_COMPATIBILITY_2_4 + +#if WXWIN_COMPATIBILITY_2_2 + +int wxRadioBoxBase::Number() const +{ + return GetCount(); +} + +wxString wxRadioBoxBase::GetLabel(int n) const +{ + return GetString(n); +} + +void wxRadioBoxBase::SetLabel(int n, const wxString& label) +{ + SetString(n, label); +} + +#endif // WXWIN_COMPATIBILITY_2_2 + #endif // wxUSE_RADIOBOX