summaryrefslogtreecommitdiff
path: root/gtk/gtkradiomenuitem.c
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2001-09-21 15:23:14 +0000
committerMatt Wilson <msw@src.gnome.org>2001-09-21 15:23:14 +0000
commit65c0e1fe5155ada32760ab0527c0c98d1571afb7 (patch)
tree27fe8c16847d293f5fffbc4d94b377be96c20186 /gtk/gtkradiomenuitem.c
parent85b433515b43064e51f820e9971b257ae71275c3 (diff)
downloadgtk+-65c0e1fe5155ada32760ab0527c0c98d1571afb7.tar.gz
set radio_menu_item->group to NULL after removing it from the list, as it
2001-09-21 Matt Wilson <msw@redhat.com> * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy): set radio_menu_item->group to NULL after removing it from the list, as it is no longer in the group. (#60869) * gtk/gtkradiobutton.c (gtk_radio_button_destroy): likewise
Diffstat (limited to 'gtk/gtkradiomenuitem.c')
-rw-r--r--gtk/gtkradiomenuitem.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkradiomenuitem.c b/gtk/gtkradiomenuitem.c
index 62acc85586..48148fe57f 100644
--- a/gtk/gtkradiomenuitem.c
+++ b/gtk/gtkradiomenuitem.c
@@ -226,6 +226,9 @@ gtk_radio_menu_item_destroy (GtkObject *object)
tmp_menu_item->group = radio_menu_item->group;
}
+ /* this radio menu item is no longer in the group */
+ radio_menu_item->group = NULL;
+
if (GTK_OBJECT_CLASS (parent_class)->destroy)
(* GTK_OBJECT_CLASS (parent_class)->destroy) (object);
}