RE: [gtkmm] TreeView: Any chance to get the parent when child is selected?



> I am facing the following problem:
> child is selected but I also need
> the parentsī value. Is there any way...?
> 
> btw:
> parent has not been selected before,
> just expanded with the little triangle
> to see the children...
> 
> My list view:
> 
> o parent ---+
>              |
>              + child
>              + child
>              + child  << this is selected

You need TreeModel::Row::parent(), I think:
http://www.gtkmm.org/gtkmm2/docs/reference/html/classGtk_1_1TreeRow.html#a6

Murray Cumming
www.murrayc.com
murrayc usa net



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