[gtkada] Handler for tree view row expanded signal
Dmitry A. Kazakov
mailbox at dmitry-kazakov.de
Wed Dec 28 19:14:55 CET 2011
On Wed, 28 Dec 2011 11:47:05 +0100, you wrote:
> Then, in the body I get the Path by
>
> Tree_Path := Gtk_Tree_Path (Get_Proxy (Nth (Params, 1)));
> 3 questions:
> 1) getting the tree path in this way does not give a valid path
The first parameter is iterator, path is the second parameter:
Path := Get_Tree_Path (Nth (Params, 2));
> 2) must the path be free'd by calling path_free ?
No. AFAIK, the implementation of Get_Tree_Path does not copy the path.
> 3) can I get the iter in a simular way, by extracting it from params
> (how?) or is the only way to use
Row := Get_Tree_Iter (Nth (Params, 1));
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
More information about the gtkada
mailing list