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

Re: GtkCTree sorting slow



On Thu, Apr 04, 2002 at 03:54:11PM +0200, Markus Lausser wrote:
> Hello.
> 
> It appears that sorting a CTree gets slow (> 5secs) if there are
> several thousand entries in it. My compare_func operates on the
> node data pointers comparing ints. Is it a gtk+-1.2.x problem?
> If yes, is it solved with version 2.x?
> Or is there a fast way of sorting a CTree in 1.2.x?
> 
> Markus.
---end quoted text---

Try freeze()'ing the CTree before call the sort function, it will help a lot! :)
But don't forget to thaw() the CTree after this operation..
Btw, these are commands from CList, and not from CTree, but CTree is implemented based on CList, so you can just cast it.. :)

[]'s
-- 
Marcelo R Leitner <mrl@netbank.com.br>
ICQ #: 29966851



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