Removing a tree item



    Hi,

    I am trying to remove a GtkTreeItem from a GtkTree using


gtk_container_remove(GTK_CONTAINER(GTK_TREE_ITEM(root)->subtree,GTK_WIDGET(myitem));

where myitem is the GtkTreeItem to remove and root is the parent
GtkTreeItem.

This will remove the node but displays the following messages.

===============================

Gtk-WARNING **: invalid class type `(unknown)' in cast to `GtkObject'

Gtk-CRITICAL **: file gtkobject.c: line 1023
(gtk_object_set_data_by_id): assertion `GTK_IS_OBJECT (object)' failed.

Gtk-WARNING **: invalid class type `(unknown)' in cast to `GtkObject'

Gtk-CRITICAL **: file gtkobject.c: line 1172 (gtk_object_unref):
assertion `GTK_IS_OBJECT (object)' failed.

Gtk-CRITICAL **: file gtkwidget.c: line 4864 (gtk_widget_ref): assertion
`GTK_IS_WIDGET(widget)' failed.
================================

How can I find the source of these messages?? Will the
"gtk_container_remove" call destroy the  myitem??

Regards
Dany Mezher




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