diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2010-11-24 02:10:28 +0100 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2010-12-04 15:39:40 +0100 |
commit | 2fb9687f554681141fcb0314e1c6a1800b5f01f3 (patch) | |
tree | 73b8856745d36f796d4aa1d8723ee625596b0d11 /gtk/gtktogglebutton.c | |
parent | 1d5a6b687edde9e23d3ef5a8599f6d1fdfbf32f9 (diff) | |
download | gtk+-2fb9687f554681141fcb0314e1c6a1800b5f01f3.tar.gz |
GtkToggleButton: Make it able to be prelight and active at the same time.
Diffstat (limited to 'gtk/gtktogglebutton.c')
-rw-r--r-- | gtk/gtktogglebutton.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtktogglebutton.c b/gtk/gtktogglebutton.c index 9f67cf7e91..7b8ae49f62 100644 --- a/gtk/gtktogglebutton.c +++ b/gtk/gtktogglebutton.c @@ -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); |