summaryrefslogtreecommitdiff
path: root/gtk/gtktogglebutton.c
diff options
context:
space:
mode:
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);