From cc529c242354475e2aee5a6176922ec7f989bdfc Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 2 Oct 2014 23:37:38 -0400 Subject: [PATCH] GtkRadioButton: Allow setting group more than once It turns out that GtkBuilder will sometimes set a property twice. Normally, this is harmless, but for GtkRadioButton:group, it triggered a critical. Remove that. --- gtk/gtkradiobutton.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gtk/gtkradiobutton.c b/gtk/gtkradiobutton.c index f61a361e15..9bfc83c162 100644 --- a/gtk/gtkradiobutton.c +++ b/gtk/gtkradiobutton.c @@ -275,7 +275,9 @@ gtk_radio_button_set_group (GtkRadioButton *radio_button, GtkWidget *new_group_singleton = NULL; g_return_if_fail (GTK_IS_RADIO_BUTTON (radio_button)); - g_return_if_fail (!g_slist_find (group, radio_button)); + + if (g_slist_find (group, radio_button)) + return; priv = radio_button->priv;