Re: populating a TreeStore in reverse order

2005-06-23 Thread The Saltydog
On 6/23/05, ofey aikon [EMAIL PROTECTED] wrote: ... May or may not be of use to you :) Very useful. Thank you! ___ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-perl-list

Re: populating a TreeStore in reverse order

2005-06-23 Thread Peter Haworth
On Wed, 22 Jun 2005 22:05:01 +0200, The Saltydog wrote: On 6/22/05, Peter Haworth [EMAIL PROTECTED] wrote: Or you could start by adding nodes to the root, and reparent them as it becomes possible. That could be fun to watch, but possibly not very useful. reparent? I know only of widget's

Re: populating a TreeStore in reverse order

2005-06-22 Thread Quentin
On Wed, 2005-06-22 at 11:49 +0200, The Saltydog wrote: I need to populate a TreeStore from a flow of data coming from a pipe. Each line of data will also have an associated depth value so that I can understand the depth in the tree. Populating the TreeStore would not be a problem, but the

Re: populating a TreeStore in reverse order

2005-06-22 Thread The Saltydog
On 6/22/05, Quentin [EMAIL PROTECTED] wrote: A _much_ more complex way, would be to keep the data in a perl array, and use a custom store. But you have to tell the store when you change/add/remove a row in the perl array. Scrolling would be slower, but the initial filling would be faster

Re: populating a TreeStore in reverse order

2005-06-22 Thread Quentin
On Wed, 2005-06-22 at 14:16 +0200, The Saltydog wrote: I already did this way into an hash, then sorting the hash and populating the treestore directly. The only matter is that I have first to wait for hash completion (it is very long, more than 1 rows) and only then show the treeview..

Re: populating a TreeStore in reverse order

2005-06-22 Thread The Saltydog
On 6/22/05, Quentin [EMAIL PROTECTED] wrote: It's not what I meant, I meant keep all the data in a perl array/hash, and use a custom store that get the data from the perl array/hash. That way you don't have to fill the store, the data are already there. It's much more complex but it can fit

Re: populating a TreeStore in reverse order

2005-06-22 Thread Quentin
On Wed, 2005-06-22 at 15:09 +0200, The Saltydog wrote: On 6/22/05, Quentin [EMAIL PROTECTED] wrote: It's not what I meant, I meant keep all the data in a perl array/hash, and use a custom store that get the data from the perl array/hash. That way you don't have to fill the store, the data

Re: populating a TreeStore in reverse order

2005-06-22 Thread The Saltydog
On 6/22/05, Quentin [EMAIL PROTECTED] wrote: for using a perl array to store the data, there is only my program : qsplayer (still looking for another name ;)), that you can find there : http://squentin.free.fr Thank you. I'll have a look. But if you want to display a partially read tree, you