Hello,

Le 26/04/2010, Arthur 1989 <arthur19891...@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.
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to