Re: Clear canvas
- From: Federico Mena Quintero <federico nuclecu unam mx>
- To: spin bcv it
- CC: gnome-list gnome org
- Subject: Re: Clear canvas
- Date: Mon, 29 Mar 1999 10:50:34 -0500
> How can I clear gnomecanvas. removing all items ?
Right now there is no "clean" way to do it. You should do something
like this:
void
clear_canvas (GnomeCanvas *canvas)
{
GList *a, *b;
a = gnome_canvas_root (canvas)->item_list;
while (a) {
b = a->next;
gtk_object_destroy (GTK_OBJECT (a->data));
a = b;
}
}
I will add a gnome_canvas_group_foreach() function for the next
release of gnome-libs.
Federico
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]