}
GSList* radioButtonGroup = NULL;
- if (!HasFlag(wxRB_GROUP))
+ if (!HasFlag(wxRB_GROUP) && !HasFlag(wxRB_SINGLE))
{
// search backward for last group start
wxWindowList::compatibility_iterator node = parent->GetChildren().GetLast();
}
m_widget = gtk_radio_button_new_with_label( radioButtonGroup, wxGTK_CONV( label ) );
+ g_object_ref(m_widget);
SetLabel(label);
- g_signal_connect (m_widget, "clicked",
- G_CALLBACK (gtk_radiobutton_clicked_callback), this);
+ g_signal_connect_after (m_widget, "clicked",
+ G_CALLBACK (gtk_radiobutton_clicked_callback), this);
m_parent->DoAddChild( this );
bool wxRadioButton::Enable( bool enable )
{
- if ( !wxControl::Enable( enable ) )
+ if (!base_type::Enable(enable))
return false;
gtk_widget_set_sensitive(GTK_BIN(m_widget)->child, enable);
+ if (enable)
+ GTKFixSensitivity();
+
return true;
}