forked from enlightenment/efl
* Genlist: Add a new method to set the data of an item.
SVN revision: 41792
This commit is contained in:
parent
a054df7d94
commit
e0992b5ac8
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue