Re: [E-devel] Elementary GenList example problem

2010-05-20 Thread Andreas Volz
Am Thu, 20 May 2010 14:27:45 +1000 schrieb Carsten Haitzler (The Rasterman): I just documented this with some lines in the beginning of the example that everyone understands that this is only example code and real applications should use pointers to data (structures). regards Andreas

Re: [E-devel] Elementary GenList example problem

2010-05-20 Thread David Seikel
/me tries to sort out the mix of top and bottom posting, with misquotes, and just throws most of it away for clarity. On Thu, 20 May 2010 14:27:45 +1000 Carsten Haitzler (The Rasterman) ras...@rasterman.com wrote: it is indeed a shortcut. i could use printf with %p instead - but i was just

Re: [E-devel] Elementary GenList example problem

2010-05-20 Thread The Rasterman
On Fri, 21 May 2010 04:23:55 +1000 David Seikel onef...@gmail.com said: /me tries to sort out the mix of top and bottom posting, with misquotes, and just throws most of it away for clarity. On Thu, 20 May 2010 14:27:45 +1000 Carsten Haitzler (The Rasterman) ras...@rasterman.com wrote:

Re: [E-devel] Elementary GenList example problem

2010-05-19 Thread Atton Jonathan
This is a shortcut, it avoid to use a struct to store the int. Sometimes for an example it is better to have less code, this way you only see the interesting part. But of course this is not a good example for newbies. 2010/5/19 Brett Nash n...@nash.id.au On Tue, 18 May 2010 22:01:57 +0200

Re: [E-devel] Elementary GenList example problem

2010-05-19 Thread The Rasterman
On Wed, 19 May 2010 08:24:09 +0200 Atton Jonathan jonathan.at...@gmail.com said: it is indeed a shortcut. i could use printf with %p instead - but i was just avoidng adding a full struct/object there that would normally be the case when querying values from it. is imply used the pointer itself as

[E-devel] Elementary GenList example problem

2010-05-18 Thread Andreas Volz
Hello, I noticed a problem in the Elementary GenList example code: static Elm_Genlist_Item_Class itc1; char *gl_label_get(const void *data, Evas_Object *obj, const char *part) { char buf[256]; snprintf(buf, sizeof(buf), Item # %i, (int)data); return strdup(buf); } static void

Re: [E-devel] Elementary GenList example problem

2010-05-18 Thread Brett Nash
On Tue, 18 May 2010 22:01:57 +0200 Andreas Volz li...@brachttal.net wrote: Hello, I noticed a problem in the Elementary GenList example code: static Elm_Genlist_Item_Class itc1; char *gl_label_get(const void *data, Evas_Object *obj, const char *part) { char buf[256];