summaryrefslogtreecommitdiff
path: root/gtk/gtkradiobutton.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/gtkradiobutton.c
parent85b433515b43064e51f820e9971b257ae71275c3 (diff)
downloadgdk-pixbuf-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/gtkradiobutton.c')
-rw-r--r--gtk/gtkradiobutton.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkradiobutton.c b/gtk/gtkradiobutton.c
index 521b0bf12..245bec87e 100644
--- a/gtk/gtkradiobutton.c
+++ b/gtk/gtkradiobutton.c
@@ -323,6 +323,9 @@ gtk_radio_button_destroy (GtkObject *object)
tmp_button->group = radio_button->group;
}
+ /* this button is no longer in the group */
+ radio_button->group = NULL;
+
if (GTK_OBJECT_CLASS (parent_class)->destroy)
(* GTK_OBJECT_CLASS (parent_class)->destroy) (object);
}