* Genlist: Add a new method to set the data of an item.

SVN revision: 41792
This commit is contained in:
Davide Andreoli 2009-08-15 18:20:28 +00:00
parent a054df7d94
commit e0992b5ac8
1 changed files with 10 additions and 1 deletions

View File

@ -1949,7 +1949,16 @@ elm_genlist_item_del(Elm_Genlist_Item *it)
EAPI void *
elm_genlist_item_data_get(const Elm_Genlist_Item *it)
{
return (void *)it->data;
if (!it) return;
return it->data;
}
EAPI void
elm_genlist_item_data_set(Elm_Genlist_Item *it, void *data)
{
if (!it) return;
it->data = data;
elm_genlist_item_update(it);
}
/**