mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
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.
This commit is contained in:
parent
d5531da7f8
commit
cc529c2423
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user