/////////////////////////////////////////////////////////////////////////////
-// Name: radiobut.cpp
+// Name: src/gtk/radiobut.cpp
// Purpose:
// Author: Robert Roebling
// Id: $Id$
// wxRadioButton
//-----------------------------------------------------------------------------
-IMPLEMENT_DYNAMIC_CLASS(wxRadioButton,wxControl)
-
bool wxRadioButton::Create( wxWindow *parent,
wxWindowID id,
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);
}
// should give an assert
// RL - No it shouldn't. A wxGenericValidator might try to set it
// as FALSE. Failing silently is probably TRTTD here.
- // RR - MSW actually unchecks the radio button so do this here, too
- gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON(m_widget), FALSE );
}
g_signal_handlers_unblock_by_func(