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

CTree, getting text



  In a CTree, I have several nodes created with:

	    gtk_ctree_insert_node (GTK_CTREE(variables_tree),
				   variables_node, NULL,
				   names,
				   0,
				   NULL,NULL,NULL,NULL,
				   TRUE,FALSE);

  Later, I try to read back a node's string with:

node = gtk_ctree_node_nth (GTK_CTREE (clist), row);
g_return_if_fail (node);
ret = gtk_ctree_node_get_text (GTK_CTREE (clist), node, column, &text);
g_return_if_fail (ret); /* but this assertion fails */
g_return_if_fail (text); 
g_warning (text);

  I'm quite sure the row and column are correct. 
  Am I doing anything obviously wrong? Thanks.


-- 
Gustavo J.A.M. Carneiro
[reinolinux.fe.up.pt/~ee96090]
                                       



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