Re: [E-devel] question about genlist

2012-07-25 Thread The Rasterman
On Wed, 25 Jul 2012 18:10:26 +0200 Vincent Torri said: > On Wed, Jul 25, 2012 at 4:34 PM, Daniel Juyung Seo > wrote: > > Can you attach the test code here? I can help you. > > > > The reason why genlist calls item callback functions is: > > A. Genlist realizes(creates) all the items at least onc

Re: [E-devel] question about genlist

2012-07-25 Thread Daniel Juyung Seo
I just added that in r74402. Thanks for reminding me of that! Daniel Juyung Seo (SeoZ) On Thu, Jul 26, 2012 at 1:54 AM, Rafael Antognolli wrote: > Hello SeoZ, > > On Wed, Jul 25, 2012 at 11:34 AM, Daniel Juyung Seo > wrote: >> Can you attach the test code here? I can help you. >> >> The reason

Re: [E-devel] question about genlist

2012-07-25 Thread Rafael Antognolli
Hello SeoZ, On Wed, Jul 25, 2012 at 11:34 AM, Daniel Juyung Seo wrote: > Can you attach the test code here? I can help you. > > The reason why genlist calls item callback functions is: > A. Genlist realizes(creates) all the items at least once to calculate > its size(width, height). > B. Genlist

Re: [E-devel] question about genlist

2012-07-25 Thread Vincent Torri
On Wed, Jul 25, 2012 at 4:34 PM, Daniel Juyung Seo wrote: > Can you attach the test code here? I can help you. > > The reason why genlist calls item callback functions is: > A. Genlist realizes(creates) all the items at least once to calculate > its size(width, height). > B. Genlist realizes items

Re: [E-devel] question about genlist

2012-07-25 Thread Daniel Juyung Seo
Can you attach the test code here? I can help you. The reason why genlist calls item callback functions is: A. Genlist realizes(creates) all the items at least once to calculate its size(width, height). B. Genlist realizes items which are staying inside the viewport. C. Content callback are called

Re: [E-devel] question about genlist

2012-07-25 Thread Vincent Torri
well, i've printed the value of the item pointer and it's different the 7th time. As, from that item, i get my structure, and the window, hence the needed evas canvas, it seg fault. I have no idea on how to find the bug, as i'v never looked at the genlist code (and honestly, it's a too big beast f

Re: [E-devel] question about genlist

2012-07-25 Thread Michael Blumenkrantz
I suppose you'd have to check valgrind for that. and yes, it is a lot of calls. On Wed, Jul 25, 2012 at 2:17 PM, Vincent Torri wrote: > so why is data becoming garbage at the 7th call ? > > btw, that's a lot of 'realize' calls, imho :) > > On Wed, Jul 25, 2012 at 3:07 PM, Michael Blumenkrantz >

Re: [E-devel] question about genlist

2012-07-25 Thread Vincent Torri
so why is data becoming garbage at the 7th call ? btw, that's a lot of 'realize' calls, imho :) On Wed, Jul 25, 2012 at 3:07 PM, Michael Blumenkrantz wrote: > the content get functions are not called "once per item", but "once per > realize". so these functions can be called an infinite number o

Re: [E-devel] question about genlist

2012-07-25 Thread Michael Blumenkrantz
the content get functions are not called "once per item", but "once per realize". so these functions can be called an infinite number of times with correct behavior. more likely you did not export USER=raster On Wed, Jul 25, 2012 at 1:36 PM, Vincent Torri wrote: > hey > > i tried to use genlist,

[E-devel] question about genlist

2012-07-25 Thread Vincent Torri
hey i tried to use genlist, based on the test (test_genlist3 function). I created a specific structure, like Testitem. I filled it like in the function. I have 3 items like in the function (i copy/pasted lines 718 to 735). what i do not understand is that gl2_content_get() is called 7th times (i