diff options
author | Matt Wilson <msw@redhat.com> | 2001-09-21 15:23:14 +0000 |
---|---|---|
committer | Matt Wilson <msw@src.gnome.org> | 2001-09-21 15:23:14 +0000 |
commit | 65c0e1fe5155ada32760ab0527c0c98d1571afb7 (patch) | |
tree | 27fe8c16847d293f5fffbc4d94b377be96c20186 /gtk | |
parent | 85b433515b43064e51f820e9971b257ae71275c3 (diff) | |
download | gdk-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')
-rw-r--r-- | gtk/gtkradiobutton.c | 3 | ||||
-rw-r--r-- | gtk/gtkradiomenuitem.c | 3 |
2 files changed, 6 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); } diff --git a/gtk/gtkradiomenuitem.c b/gtk/gtkradiomenuitem.c index 62acc8558..48148fe57 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); } |