]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/radiocmn.cpp
wxGTK1 compilation fix after last commit
[wxWidgets.git] / src / common / radiocmn.cpp
index c936cc3593c14152020e551c337d662ed311e898..dbaae7076d91fb1d994a84276dc5a3efcdb5ee82 100644 (file)
 // headers
 // ----------------------------------------------------------------------------
 
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-    #pragma implementation "radioboxbase.h"
-#endif
-
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
@@ -148,5 +144,23 @@ void wxRadioBoxBase::SetNumberOfRowsOrCols(int WXUNUSED(n))
 
 #endif // WXWIN_COMPATIBILITY_2_4
 
-#endif // wxUSE_RADIOBOX
+#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