EuGTK:TreeViiew Parents & Children
- Posted by euphoric (admin) Aug 23, 2019
- 977 views
Forked from Re: EuGTK:How to Build a TreeView
irv said...
See the updated function ShowSelection() in the new pasty to see how it works - it obtains the clicked (selected) item, for example, Grumpy Cat, and then obtains the item's parent, adds it to the head of our result, and recurses until there is no parent left. Results:
Mac -> The Woz -> Susan (the other kid) -> Grumpy Cat
Of course, you can format the result however you wish.
Irv, I'm getting a value of -1 for each of these atom vars:
atom fn1 = define_c_func(LIBS[1],"gtk_tree_selection_get_selected",{P,P,P},P) atom fn2 = define_c_func(LIBS[1],"gtk_tree_model_iter_parent",{P,P,P},B) atom fn3 = define_c_func(LIBS[1],"gtk_tree_iter_copy",{P},P)
Can you confirm these should work on Windows?