Cleaning a canvas


 Here goes an small question:
 How can I remove all the items in a GnomeCanvas?

 I have tried an:
 GList * ptr = canvas -> item_list;
 while (ptr != NULL)
 gtk_object_destroy(GTK_OBJECT(ptr -> data));
 ptr = ptr -> next;

And some minor variations but it doesn't work.

Any suggestion?
Greets, Iñaki

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]