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