summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtkradiobutton.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtkradiobutton.c b/gtk/gtkradiobutton.c
index 590a085e54..b080dc29f9 100644
--- a/gtk/gtkradiobutton.c
+++ b/gtk/gtkradiobutton.c
@@ -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))
{