radiobutton: exclude states we set manually from the previous state
https://bugzilla.gnome.org/show_bug.cgi?id=645172
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user