Re: how to reset a gnome canvas?
- From: Ottavio Campana <ottavio campana vi it>
- To: Paul Davis <paul linuxaudiosystems com>
- Cc: gtk-list gnome org
- Subject: Re: how to reset a gnome canvas?
- Date: Sat, 1 Mar 2003 18:49:24 +0100
On Sun, Feb 23, 2003 at 02:58:01PM -0500, Paul Davis wrote:
> >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.
It doesn't seems to be a good idea. I've got:
GnomeCanvas-ERROR **: Eeeek, root item 0x80d3ae8 of canvas 0x80d3ce0 was destroyed!
aborting...
and then it crashes. Debugging I've seen it get a SIGABRT from a kill
function in the gtk_object_destroy.
By the way: my compiler complains that it doesn't find g_object_destroy
and GOBJECT. Where are they? In which header?
--
Non c'è più forza nella normalità, c'è solo monotonia.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]