[gtk+/gtk-style-context] GtkToggleButton: Make it able to be prelight and active at the same time.



commit 49b4da1cb17b49df41d9b77cf9a2fa160ca94141
Author: Carlos Garnacho <carlosg gnome org>
Date:   Wed Nov 24 02:10:28 2010 +0100

    GtkToggleButton: Make it able to be prelight and active at the same time.

 gtk/gtktogglebutton.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtktogglebutton.c b/gtk/gtktogglebutton.c
index d34c413..2bd0faf 100644
--- a/gtk/gtktogglebutton.c
+++ b/gtk/gtktogglebutton.c
@@ -578,7 +578,8 @@ gtk_toggle_button_update_state (GtkButton *button)
 
   if (!touchscreen && button->in_button && (!button->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);



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