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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user