Elm_Slideshow : add item_data_get()

SVN revision: 44696
This commit is contained in:
Jonathan Atton 2009-12-23 17:10:18 +00:00
parent fb5a1aae29
commit 0ea2b23bfa
2 changed files with 14 additions and 0 deletions

View File

@ -949,6 +949,7 @@ extern "C" {
EAPI void elm_slideshow_clear(Evas_Object *obj);
EAPI const Eina_List *elm_slideshow_items_get(const Evas_Object *obj);
EAPI void elm_slideshow_item_del(Elm_Slideshow_Item *item);
EAPI void * elm_slideshow_item_data_get(Elm_Slideshow_Item *item);
EAPI Elm_Slideshow_Item* elm_slideshow_item_current_get(Evas_Object *obj);
EAPI Evas_Object* elm_slideshow_item_object_get(Elm_Slideshow_Item* item);
/* smart callbacks called:

View File

@ -565,3 +565,16 @@ elm_slideshow_item_object_get(Elm_Slideshow_Item * item)
return item->o;
}
/**
* Returns the data associated to an item
*
* @param item The slideshow item
* @return Returns the data associated to this item
*/
EAPI void *
elm_slideshow_item_data_get(Elm_Slideshow_Item * item)
{
if (!item) return NULL;
return (void *)item->data;
}