That won't help you if you call elm_gengrid_clear() for example. I think the only sane way would be from within the del function
On Sun, Nov 14, 2010 at 3:05 AM, Rafael Fonseca <rfons...@profusion.mobi>wrote: > On 11/13/2010 02:54 PM, Viktor Kojouharov wrote: > >> Why doesn't that function receive the actual item object as a parameter? >> The object itself can hold user data, which might need cleaning when the >> item is deleted. From that function however, there's no way to clear that >> data, since all you get is an evas_object (whose usefulness escapes me). >> May >> I propose that we also pass the gen*_item as a third parameter to the del >> functions? >> > > If you want to delete the data attached to some object the way > gen[list|grid] are now you need to do the following: > > Evas_Object *obj = elm_gen[list|grid]_item_object_get(item); > Pointer *data = evas_object_data_del(obj, "key"); > free(data); > elm_gen[list|grid]_item_del(item); > > B.R. > -- > Rafael Fonseca > ProFUSION embedded systems > http://www.profusion.mobi > ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel