Allow gtk_radio_menu_item_set_group() to be called twice without crashing.
https://bugzilla.gnome.org/show_bug.cgi?id=726859
This commit is contained in:
parent
f71f7215ab
commit
75b0180829
@ -166,10 +166,12 @@ gtk_radio_menu_item_set_group (GtkRadioMenuItem *radio_menu_item,
|
||||
GtkWidget *new_group_singleton = NULL;
|
||||
|
||||
g_return_if_fail (GTK_IS_RADIO_MENU_ITEM (radio_menu_item));
|
||||
g_return_if_fail (!g_slist_find (group, radio_menu_item));
|
||||
|
||||
priv = radio_menu_item->priv;
|
||||
|
||||
if (priv->group == group)
|
||||
return;
|
||||
|
||||
if (priv->group)
|
||||
{
|
||||
GSList *slist;
|
||||
|
Loading…
Reference in New Issue
Block a user