togglebutton: Fix actionable state tracking

If we have a GAction as model, we just have to let
the action helper handle the state updates. GtkButton
already calls gtk_action_helper_activate() for us.
This commit is contained in:
Matthias Clasen
2021-06-10 08:36:08 -04:00
parent 208c527fb3
commit 0a78a592ff

View File

@@ -202,6 +202,9 @@ gtk_toggle_button_clicked (GtkButton *button)
if (priv->active && (priv->group_prev || priv->group_next))
return;
if (gtk_button_get_action_helper (button))
return;
gtk_toggle_button_set_active (toggle_button, !priv->active);
}