Re: [Glade-devel] [Glade-devel]: gtk_ctree_node_get_text bug ?

Date view Thread view Subject view Author view

From: James Henstridge (james@daa.com.au)
Date: Wed Nov 01 2000 - 20:15:16 EST


On Wed, 1 Nov 2000, Esquibel, Rick wrote:

> There appears to be a bug in the gtk_ctree_node_get_text function when a
> GtkCTree is defined with only one column. More specifically, this statement
> in gtk_ctree_node_get_text() will return 0 when column = 0.
>
> if (column < 0 || column >= GTK_CLIST (ctree)->columns)
> return 0;
>
> Others have used the GTK_CELL_TEXT macro to resolve this bug when the
> ctree_select_row signal is used (see below).

That is because the tree column is not a text column. If you want info
about the tree column, you should use the
gtk_ctree_get_node_info() function.

James.

_______________________________________________
Glade-devel maillist - Glade-devel@helixcode.com
http://lists.helixcode.com/mailman/listinfo/glade-devel


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Nov 01 2000 - 20:52:48 EST