[gtkada] Bug in Node_Get_Text in Ctree
Emmanuel Briot
briot at gnat.com
Thu Feb 8 11:29:44 CET 2001
> When I use Gtk.Ctree.Node_Get_Text(..,.., Column => 0, Text, Success) in
> a columned tree with two columns, Success is False.
> When Column = 1, it works however.
> Also, Node_Set_Text(..,.., Column => 0, "some text") works, so the
> text can be set, but not retrieved for the first column.
> According to the comments, the type of the column should be Cell_Text or
> Cell_Pixtext, which it is. This is ensured by s call to Node_Set_Text
> which sets the type to Cell_Text.
Thanks,
in fact, this has already been fixed for the next release (the comment for
Node_Get_Text was in fact wrong, since that subprogram would work only for
text-only cells). We have now fixed the body to make the comment appropriate
:-)
The workaround you found (use Node_Get_PixText) will work until the next
release...
Emmanuel
More information about the gtkada
mailing list