radiobutton: exclude states we set manually from the previous state

https://bugzilla.gnome.org/show_bug.cgi?id=645172
This commit is contained in:
Cosimo Cecchi
2011-03-18 15:14:25 -04:00
parent db4034ddd8
commit 64860e184a

View File

@@ -800,7 +800,9 @@ gtk_radio_button_clicked (GtkButton *button)
g_object_ref (GTK_WIDGET (button));
new_state = gtk_widget_get_state_flags (GTK_WIDGET (button));
new_state = gtk_widget_get_state_flags (GTK_WIDGET (button)) &
~(GTK_STATE_FLAG_PRELIGHT |
GTK_STATE_FLAG_ACTIVE);
if (gtk_toggle_button_get_active (toggle_button))
{