summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@linux.intel.com>2012-03-05 13:09:47 +0000
committerMatthias Clasen <mclasen@redhat.com>2015-03-22 02:10:37 -0400
commit955aed92272b88a72617cbadca6f3010920a4f1f (patch)
tree6d3b3d9382f593fe4768d3b611587868b3b08a32
parentc16acff3ea3a09c75541a02afad4b31096e55c2e (diff)
downloadgtk+-955aed92272b88a72617cbadca6f3010920a4f1f.tar.gz
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
-rw-r--r--gtk/gtkradiomenuitem.c2
1 files changed, 2 insertions, 0 deletions
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
{