Re: How to get text from a GtkCTree?



Jeff Shipman a écrit :
> 
> I'm trying to grab the text from a certain row in
> a ctree after a row is selected. This is the function
> that does it:
> 
> void tree_select_row(GtkCTree *tree, GList *node, gint column, gpointer
> user_data
> {
>    gchar *name;
> 
>    gtk_ctree_node_get_text(GTK_CTREE(tree), GTK_CTREE_NODE(node), column,
> &name);
> 
>    printf("building = %s\n", name);
> }
> 
Try gtk_ctree_node_get_pixtext(GTK_CTREE(tree), GTK_CTREE_NODE(node),
column,
&name, NULL, NULL);
-- 
Florent DEVIN




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