summaryrefslogtreecommitdiff
path: root/gtk/gtktogglebutton.c
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2010-11-24 02:10:28 +0100
committerCarlos Garnacho <carlosg@gnome.org>2010-12-04 15:39:40 +0100
commit2fb9687f554681141fcb0314e1c6a1800b5f01f3 (patch)
tree73b8856745d36f796d4aa1d8723ee625596b0d11 /gtk/gtktogglebutton.c
parent1d5a6b687edde9e23d3ef5a8599f6d1fdfbf32f9 (diff)
downloadgtk+-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.c3
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);