GtkDirectionType direction)
{
GtkCheckButton *self = GTK_CHECK_BUTTON (widget);
- GtkCheckButton *active_button;
-
- active_button = get_group_active_button (self);
if (gtk_widget_is_focus (widget))
{
if (new_focus)
{
gtk_widget_grab_focus (new_focus);
- gtk_check_button_set_active (GTK_CHECK_BUTTON (new_focus), TRUE);
- if (active_button && active_button != (GtkCheckButton *)new_focus)
- gtk_check_button_set_active (GTK_CHECK_BUTTON (active_button), FALSE);
+ gtk_widget_activate (new_focus);
}
g_ptr_array_free (child_array, TRUE);
}
else
{
+ GtkCheckButton *active_button;
+
+ active_button = get_group_active_button (self);
if (active_button && active_button != self)
return FALSE;