summaryrefslogtreecommitdiff
path: root/gtk/gtkcheckbutton.c
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2010-11-24 03:02:49 +0100
committerCarlos Garnacho <carlosg@gnome.org>2010-12-04 15:39:41 +0100
commit2f0b5d8a9dd7db30a5ac7a40e4f3587854971782 (patch)
tree933c6d681b987fe97680f758c0b2b580d2b20572 /gtk/gtkcheckbutton.c
parent037c982824a9e1353fd903ffe2bba0c97f23042e (diff)
downloadgtk+-2f0b5d8a9dd7db30a5ac7a40e4f3587854971782.tar.gz
GtkCheckButton: Look active when the pointer button is pressed and hovering
Diffstat (limited to 'gtk/gtkcheckbutton.c')
-rw-r--r--gtk/gtkcheckbutton.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkcheckbutton.c b/gtk/gtkcheckbutton.c
index a27290432e..91b92f0f70 100644
--- a/gtk/gtkcheckbutton.c
+++ b/gtk/gtkcheckbutton.c
@@ -444,7 +444,8 @@ gtk_real_check_button_draw_indicator (GtkCheckButton *check_button,
if (gtk_toggle_button_get_inconsistent (toggle_button))
state |= GTK_STATE_FLAG_INCONSISTENT;
- else if (gtk_toggle_button_get_active (toggle_button))
+ else if (gtk_toggle_button_get_active (toggle_button) ||
+ (button->priv->button_down && button->priv->in_button))
state |= GTK_STATE_FLAG_ACTIVE;
if (button->priv->activate_timeout || (button->priv->button_down && button->priv->in_button))