[gtk+/gtk-style-context] GtkCheckButton: Look active when the pointer button is pressed and hovering



commit c1a6a9e513cdefa2f4904480ec801dcac5814b1e
Author: Carlos Garnacho <carlosg gnome org>
Date:   Wed Nov 24 03:02:49 2010 +0100

    GtkCheckButton: Look active when the pointer button is pressed and hovering

 gtk/gtkcheckbutton.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcheckbutton.c b/gtk/gtkcheckbutton.c
index e3e6614..7776f60 100644
--- a/gtk/gtkcheckbutton.c
+++ b/gtk/gtkcheckbutton.c
@@ -443,7 +443,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->button_down && button->in_button))
     state |= GTK_STATE_FLAG_ACTIVE;
 
   if (button->activate_timeout || (button->button_down && button->in_button))



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]