GtkToggleButton: Make it able to be prelight and active at the same time.

This commit is contained in:
Carlos Garnacho 2010-11-24 02:10:28 +01:00
parent 1d5a6b687e
commit 2fb9687f55

View File

@ -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);