/* This function sets this radio button to be the single radio button selected within its group. If another radio button was selected, it will be deselected. Both widgets will be redrawn if visible. */
void wtk_radio_button_select(struct wtk_radio_button *radio_button)
/* This function sets this radio button to be the single radio button selected within its group. If another radio button was selected, it will be deselected. Both widgets will be redrawn if visible. */
void wtk_radio_button_select(struct wtk_radio_button *radio_button)
{
	struct wtk_radio_button *old_selected;
	Assert(radio_button);
	if (radio_button->group->selected == radio_button) {
		return;
	}
	old_selected = radio_button->group->selected;
	radio_button->group->selected = radio_button;
	if (old_selected) {
		win_redraw(old_selected->container);
	}
	win_redraw(radio_button->container);
}