On Thu, 03 Sep 2009 19:08:09 -0400 Christopher Michael <cpmicha...@comcast.net>
said:

> Carsten Haitzler (The Rasterman) wrote:
> > On Sun, 30 Aug 2009 10:52:10 -0400 Christopher Michael
> > <cpmicha...@comcast.net> said:
> > 
> >> Seems elm_genlist has issues :(
> >>
> >> Apparently you can only add about 11 subitems before problems start :(
> >>
> >> Basically, I created a "file tree" using elm_genlist_add. When listing 
> >> out directories, I get to e->trunk->E-MODULES-EXTRA and the problems 
> >> start. If I add the subdirs to modules-extra, I can only add about 11 
> >> subitems (which all appear fine under e->trunk->E-MODULES-EXTRA), but 
> >> anything after #11 appears at the end of the genlist...very odd so seems 
> >> there is a bug in genlist somewhere :(
> >>
> >> I've uploaded some code for those brave enough to investigate this:
> >> http://devilhorns.us/files/echelon.tar.gz.
> >>
> >> This doesn't need to be 'installed' or anything, just build it, run it, 
> >> and expand the tree to e->trunk->E-MODULES-EXTRA and you will see that 
> >> after about subitem #11, the rest get added to the end of the genlist.
> >>
> >> I took a look at it myself, but no luck :(
> > 
> > hmm i don't know what causes it.
> > 
> > when u add an item to genlist it goes into a queue. all the params are
> > stored in that queue item (the item info, what item its above/below etc.).
> > this queue is processed in idle time to become real usable items. this is
> > to handle the "i want a list with 5,000,000 items" case or so. ie code adds
> > a stupid # of items. every item needs to at least be realized once, set up,
> > size calculated etc. so a scroller/scrollbar can display a size and
> > position. as this can be prohibitive, it's farmed off to be "done over
> > time" to keep the app interactive. my guess is something might go wrong
> > here, but i can't see what it is. why the 11th level? makes no sense.
> > 
> > 
> Yea, doesn't make a whole lot of sense to me either :( There is no 
> hard-coded limit to the number of subitems right ? (Would seem silly to 
> me) ... perhaps something is getting lost (item's parent) when the queue 
> gets processed ?

dunno. but why would it get lost there and not randomly at any level or all the
time?

-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    ras...@rasterman.com


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to