mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 05:31:07 +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))
|
if (!touchscreen && button->priv->in_button && (!button->priv->button_down || priv->draw_indicator))
|
||||||
new_state |= GTK_STATE_FLAG_PRELIGHT;
|
new_state |= GTK_STATE_FLAG_PRELIGHT;
|
||||||
else if (depressed)
|
|
||||||
|
if (depressed)
|
||||||
new_state |= GTK_STATE_FLAG_ACTIVE;
|
new_state |= GTK_STATE_FLAG_ACTIVE;
|
||||||
|
|
||||||
_gtk_button_set_depressed (button, depressed);
|
_gtk_button_set_depressed (button, depressed);
|
||||||
|
Loading…
Reference in New Issue
Block a user