#pragma implementation "radiobut.h"
#endif
-#include "wx/radiobut.h"
+#include "wx/defs.h"
#if wxUSE_RADIOBOX
+#include "wx/radiobut.h"
+
#include <gdk/gdk.h>
#include <gtk/gtk.h>
PostCreation();
- ApplyWidgetStyle();
-
SetFont( parent->GetFont() );
wxSize size_best( DoGetBestSize() );
void wxRadioButton::SetValue( bool val )
{
wxCHECK_RET( m_widget != NULL, wxT("invalid radiobutton") );
-
+
if (val == GetValue())
return;
else
{
// should give an assert
+ // RL - No it shouldn't. A wxGenericValidator might try to set it
+ // as FALSE. Failing silently is probably TRTTD here.
}
-
+
gtk_signal_connect( GTK_OBJECT(m_widget), "clicked",
GTK_SIGNAL_FUNC(gtk_radiobutton_clicked_callback), (gpointer*)this );
}