]> Pileus Git - ~andy/gtk/commitdiff
GtkToggleButton: Make it able to be prelight and active at the same time.
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 24 Nov 2010 01:10:28 +0000 (02:10 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Sat, 4 Dec 2010 14:39:40 +0000 (15:39 +0100)
gtk/gtktogglebutton.c

index 9f67cf7e91c616ad4685ff4e82160d40883759e2..7b8ae49f620639faf32621703af44b32212fbf07 100644 (file)
@@ -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);