mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
radio-menu-item: Handle a !NULL group
If we create a RadioMenuItem without a group, and then set a group, the menu item will still be set as active, which means an inconsistently drawn radio menu item - as the RadioMenuItem will set the active flag on itself, but then it won't reset it when it gets a new group. https://bugzilla.gnome.org/show_bug.cgi?id=671362
This commit is contained in:
parent
c16acff3ea
commit
955aed9227
@ -208,6 +208,8 @@ gtk_radio_menu_item_set_group (GtkRadioMenuItem *radio_menu_item,
|
|||||||
|
|
||||||
tmp_item->priv->group = priv->group;
|
tmp_item->priv->group = priv->group;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (radio_menu_item), FALSE);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user