radiobutton: build the new state flags from the previous flags on click

This fixes e.g. sensitivity issues with GtkRadioButton on state update.

https://bugzilla.gnome.org/show_bug.cgi?id=645172
This commit is contained in:
Cosimo Cecchi 2011-03-18 15:00:11 -04:00
parent 9b93ca2848
commit ef5fb8d673

View File

@ -800,6 +800,8 @@ gtk_radio_button_clicked (GtkButton *button)
g_object_ref (GTK_WIDGET (button));
new_state = gtk_widget_get_state_flags (GTK_WIDGET (button));
if (gtk_toggle_button_get_active (toggle_button))
{
tmp_button = NULL;