mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 13:11:13 +00:00
GtkToggleButton: Make it able to be prelight and active at the same time.
This commit is contained in:
parent
1d5a6b687e
commit
2fb9687f55
@ -581,7 +581,8 @@ gtk_toggle_button_update_state (GtkButton *button)
|
||||
|
||||
if (!touchscreen && button->priv->in_button && (!button->priv->button_down || priv->draw_indicator))
|
||||
new_state |= GTK_STATE_FLAG_PRELIGHT;
|
||||
else if (depressed)
|
||||
|
||||
if (depressed)
|
||||
new_state |= GTK_STATE_FLAG_ACTIVE;
|
||||
|
||||
_gtk_button_set_depressed (button, depressed);
|
||||
|
Loading…
Reference in New Issue
Block a user