forked from AuroraMiddleware/gtk
checkbutton: Delegate ::activate to the helper if appropriate
If the button is associated with an action, the action is currently only activated when the button is clicked, not when it is activated.
This commit is contained in:
parent
06348a8517
commit
c50475de34
@ -498,6 +498,9 @@ gtk_check_button_real_activate (GtkCheckButton *self)
|
||||
if (priv->active && (priv->group_prev || priv->group_next))
|
||||
return;
|
||||
|
||||
if (priv->action_helper)
|
||||
gtk_action_helper_activate (priv->action_helper);
|
||||
else
|
||||
gtk_check_button_set_active (self, !gtk_check_button_get_active (self));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user