]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/radiobut.cpp
always skip OnSize
[wxWidgets.git] / src / gtk / radiobut.cpp
index d2c5f73cfee57f8bb905d8d363285db4b9521aa7..9cb0c7fe1694788b43f0d220eeb09e1e2cbbd8c1 100644 (file)
@@ -47,8 +47,6 @@ void gtk_radiobutton_clicked_callback( GtkToggleButton *button, wxRadioButton *r
 // wxRadioButton
 //-----------------------------------------------------------------------------
 
-IMPLEMENT_DYNAMIC_CLASS(wxRadioButton,wxControl)
-
 bool wxRadioButton::Create( wxWindow *parent,
                             wxWindowID id,
                             const wxString& label,
@@ -101,6 +99,9 @@ void wxRadioButton::SetLabel( const wxString& label )
 {
     wxCHECK_RET( m_widget != NULL, wxT("invalid radiobutton") );
 
+    // save the original label
+    wxControlBase::SetLabel(label);
+
     GTKSetLabelForLabel(GTK_LABEL(GTK_BIN(m_widget)->child), label);
 }