Re: gtk_tree_view/store, best way to select all nodes of a branch

2012-09-26 Thread Arne Pagel
I played around with the gtk_tree_selection_select_range functions, but as far as I have seen this is not working for collapsed elements. Also I found the handling very difficult for my purpose, and the operation can be distorted by other mouse movements. I implemented this now by using the

Re: gtk_tree_view/store, best way to select all nodes of a branch

2012-09-19 Thread Arne Pagel
Thanks, for this hint Arne ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: gtk_tree_view/store, best way to select all nodes of a branch

2012-09-12 Thread Arne Pagel
My current simple solution is as follows: I use the gtk_tree_model_foreach() function and pass some user data with the current major number of the tree-path. Inside the foreach-function I use gtk_tree_path_to_string, where I check if the first number is identical to the user data. This works,

Re: gtk_tree_view/store, best way to select all nodes of a branch

2012-09-12 Thread David Nečas
On Wed, Sep 12, 2012 at 10:40:11AM +0200, Arne Pagel wrote: My current simple solution is as follows: I use the gtk_tree_model_foreach() function and pass some user data with the current major number of the tree-path. Inside the foreach-function I use gtk_tree_path_to_string, where I check if

gtk_tree_view/store, best way to select all nodes of a branch

2012-09-10 Thread Arne Pagel
Dear all, I am currently searing for the best method to perform an action on one nodes of a branch in a treestore. At the moment the user just selectes one row of my treeview, so I have to determine if this node is part of a branch and then selecting all other nodes of the branch. I found