[Glade-users] gtk tree error
Damon Chaplin
damon at karuna.uklinux.net
Sun Jul 24 08:58:08 EDT 2005
On Mon, 2005-07-11 at 19:39 +0530, srinivas wrote:
> hi;
>
> i want to display gtktreeview with expand, collapse functionality.
> i created tree using glade, and later accessed that using
> gtk_tree_view_set_model(), created tree view also. now when i want to
> display using expand/collapse functionality, i am getting error like
> this.
> Gtk-CRITICAL **: file gtktreeitem.c: line 298
> (gtk_tree_item_set_subtree): assertion `GTK_IS_TREE (subtree)' failed
>
> what does it mean, am i supposed to create one more tree for subtree,
> how to resolve the error;
Note that there are 2 tree widgets in GTK+: the old GtkTree and the new
GtkTreeView.
gtk_tree_item_set_subtree() is used for the old tree widget, but it
looks like you are using GtkTreeView which is the new widget.
This GtkTreeView tutorial may help:
http://scentric.net/tutorial/
Damon
More information about the Glade-users
mailing list