Re: canvas group question...
- From: Cody Russell <bratsche dfw net>
- To: Erik Andersen <andersen xmission com>
- cc: gnome-devel-list gnome org, recipient list not shown: ;
- Subject: Re: canvas group question...
- Date: Mon, 15 Nov 1999 01:14:19 -0600 (CST)
Destroying a GnomeCanvasGroup will also destroy all of its children.
gnome_canvas_group_destroy() does:
list = group->item_list;
while (list) {
child = list->data;
list = list->next;
gtk_object_destroy (GTK_OBJECT (child));
Cody
On Mon, 15 Nov 1999, Erik Andersen wrote:
> Will doing a
>
> gtk_object_destroy( GTK_OBJECT (someGnomeCanvasGroup));
>
> walk through and destroy all the items contained in a
> canvas group, or do I need to do something like:
>
> listItem = g_list_first( myGroup->item_list);
> while(listItem) {
> g_list_remove_link(myGroup->item_list, listItem);
> gtk_object_destroy( GTK_OBJECT (listItem));
> g_list_free_1( listItem);
> listItem = g_list_first( myGroup->item_list);
> }
>
> ?
>
> -Erik
>
> --
> Erik B. Andersen Web: http://www.xmission.com/~andersen/
> email: andersee@debian.org
> --This message was written using 73% post-consumer electrons--
>
>
> --
> To unsubscribe: mail gnome-devel-list-request@gnome.org with "unsubscribe"
> as the Subject.
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]