Re: CTree - Retrieving text



The data for a ctree is stored in a CList so if you want to get data from a 
row that is selected you would do this:

 gtk_ctree_node_get_text((GtkCTree*)ctree,GTK_CLIST(ctree)->selection->data,
                                      column, &text);

Hope this helps,
Mike

On Saturday 28 April 2001 01:28, frankc srv net wrote:
I cannot retrieve text from a CTree :

callback connected to ctree does this:

gchar *text;

if(gtk_ctree_node_get_text(ctree, node, column, &text))
{
    printf("%s\n", text);
}
else
{
    printf("No Text\n");
}

I am selecting items with text in them.  I even tried to set it first,
which did change it on the list, and read it back.  It would no see it
then either.

Frank




_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list




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