[gtkada] Handler for tree view row expanded signal

Rob Groen robgr at xs4all.nl
Thu Dec 29 18:30:19 CET 2011


Thanks Dmitry

I completele overlooked the Get_Tree_Iter function and assumed that 
Params index starts at 0... Typical RTFM as it clearly states that
"The index of the first element is always 1"

Rob


On -10/01/37 20:59, Dmitry A. Kazakov wrote:
> 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));
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/gtkada/attachments/20111229/6694bf36/attachment.htm 


More information about the gtkada mailing list