On Sat, 10 Sep 2011 12:52:04 -0300 Gustavo Sverzut Barbieri
> On Sat, Sep 10, 2011 at 12:44 PM, Mike Blumenkrantz <mike@...:
> > Hi,
> > Why is stringshare not used for labels in genlist/gengrid? It seems stupid
> > that
> > such a commonly used widget does not take advantage of stringshares...
> No idea, raster did it that way... it remained that way. Makes perfect sense
> to me, most of the times you'll get the label from a stringshared resource
> and then stick it into stringshared resource (evas/edje).
> I guess he did it like that since his test code was creating strings
> dynamically with snprintf("Item %d", counter);
they are used internally - its just at the interface layer it requires a dupped
string. i opted for strdup as it's more common and i invariably expect the code
handing back strings to come from non-efl sources more often, so strdup works
best i didnt expect them to be long strings nor be en-masse duplicates.
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler) raster@...