]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xh_radbt.cpp
can't pass objects through ... (please don't ever ignore this gcc warning)
[wxWidgets.git] / src / xrc / xh_radbt.cpp
index 01c5ece4f0dc487dacee7585c982225e405a6bd6..aff575219ee7d036ffe3e330a745f872baffa9bc 100644 (file)
@@ -8,10 +8,6 @@
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#ifdef __GNUG__
-#pragma implementation "xh_radbt.h"
-#endif
-
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
     #pragma hdrstop
 #endif
 
+#if wxUSE_XRC && wxUSE_RADIOBTN
+
 #include "wx/xrc/xh_radbt.h"
 #include "wx/radiobut.h"
 
-#if wxUSE_RADIOBOX
-
 IMPLEMENT_DYNAMIC_CLASS(wxRadioButtonXmlHandler, wxXmlResourceHandler)
 
 wxRadioButtonXmlHandler::wxRadioButtonXmlHandler()
 : wxXmlResourceHandler()
 {
     XRC_ADD_STYLE(wxRB_GROUP);
+    XRC_ADD_STYLE(wxRB_SINGLE);
     AddWindowStyles();
 }
 
@@ -63,4 +60,4 @@ bool wxRadioButtonXmlHandler::CanHandle(wxXmlNode *node)
     return IsOfClass(node, wxT("wxRadioButton"));
 }
 
-#endif
+#endif // wxUSE_XRC && wxUSE_RADIOBTN