Re: how to reset a gnome canvas?



>How can I delete all the things that I've previously put in a canvas?

take the top level canvas group, and:

     gtk_object_destroy (GTK_OBJECT(group));

probably make that:

     g_object_destroy (GOBJECT(group));

if you are using GTK+2.

destroying a group recursively destroys all of its members.

--p



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