Re: how to get the parent of a selected row in treeview?



Hello,

Le 26/04/2010, Arthur 1989 <arthur19891106 gmail com> a Ãcrit :
Although I can get selection with gtk_tree_selection_get_selected(),
but i don't know how to get the selected row's parent.for example,
when i click on "Ubuntu 10.04",how to get its' parent "Linux"?
You can use gtk_tree_model_iter_parent () when dealing with TreeIter
only.

The transformation through TreePath described by Tadej BorovÅak is also
usefull when listening to the row-activated signal from TreeView since
one of its argument is a TreePath.

Damien.



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