Re: Another question on GnomeCanvasItem



>  How do I delete a GnomeCanvasItem from memory? I found no
>  gnome_canvas_item_free() function, or the equivalent of. Should I just
>  do a g_free() on it? I'm assuming that if I do this on a GnomeCanvasPixbuf,
>  then the corresponding GdkPixbuf isn't going to be unref-ed automatically.

gtk_object_destroy (GTK_OBJECT (my_item));

The GnomeCanvasPixbuf item will automatically unref the GdkPixbuf it
contains.

  Federico



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