button: Handle :checked in gtktogglebutton.c
Don't try to handle it elsewhere.
This commit is contained in:
@ -561,15 +561,11 @@ gtk_real_check_button_draw_indicator (GtkCheckButton *check_button,
|
||||
|
||||
state &= ~(GTK_STATE_FLAG_INCONSISTENT |
|
||||
GTK_STATE_FLAG_ACTIVE |
|
||||
GTK_STATE_FLAG_CHECKED |
|
||||
GTK_STATE_FLAG_PRELIGHT);
|
||||
|
||||
if (gtk_toggle_button_get_inconsistent (toggle_button))
|
||||
state |= GTK_STATE_FLAG_INCONSISTENT;
|
||||
|
||||
if (gtk_toggle_button_get_active (toggle_button))
|
||||
state |= GTK_STATE_FLAG_CHECKED;
|
||||
|
||||
if (button->priv->activate_timeout || (button->priv->button_down && button->priv->in_button))
|
||||
state |= GTK_STATE_FLAG_ACTIVE;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user