From 2fb9687f554681141fcb0314e1c6a1800b5f01f3 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Wed, 24 Nov 2010 02:10:28 +0100 Subject: [PATCH] GtkToggleButton: Make it able to be prelight and active at the same time. --- gtk/gtktogglebutton.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);