From b10d3d005117aaa7b8718a9724d2c973370bd714 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Mon, 5 Mar 2012 13:09:47 +0000 Subject: [PATCH] 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 --- gtk/gtkradiomenuitem.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gtk/gtkradiomenuitem.c b/gtk/gtkradiomenuitem.c index 8eaab3b4c5..ee49423325 100644 --- a/gtk/gtkradiomenuitem.c +++ b/gtk/gtkradiomenuitem.c @@ -208,6 +208,8 @@ gtk_radio_menu_item_set_group (GtkRadioMenuItem *radio_menu_item, tmp_item->priv->group = priv->group; } + + _gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (radio_menu_item), FALSE); } else {