From: Tiago Rezende Campos Falcao Date: Thu, 7 Jan 2010 16:34:19 +0000 (+0000) Subject: Elm_List_Item selected getter X-Git-Tag: v1.0.0~4898 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=201d28157e3c3f52a4087eb8e6a1c3a38c2b46b9;p=platform%2Fupstream%2Felementary.git Elm_List_Item selected getter SVN revision: 44951 --- diff --git a/src/lib/Elementary.h.in b/src/lib/Elementary.h.in index c53f7f8..5c88d23 100644 --- a/src/lib/Elementary.h.in +++ b/src/lib/Elementary.h.in @@ -750,6 +750,7 @@ extern "C" { EAPI Elm_List_Item *elm_list_selected_item_get(const Evas_Object *obj); EAPI const Eina_List *elm_list_selected_items_get(const Evas_Object *obj); EAPI void elm_list_item_selected_set(Elm_List_Item *item, Eina_Bool selected); + EAPI Eina_Bool elm_list_item_selected_get(Elm_List_Item *item); EAPI void elm_list_item_show(Elm_List_Item *item); EAPI void elm_list_item_del(Elm_List_Item *item); EAPI void elm_list_item_del_cb_set(Elm_List_Item *item, void (*func)(void *data, Evas_Object *obj, void *event_info)); diff --git a/src/lib/elm_list.c b/src/lib/elm_list.c index 7591606..8ff8ac5 100644 --- a/src/lib/elm_list.c +++ b/src/lib/elm_list.c @@ -900,6 +900,14 @@ elm_list_item_selected_set(Elm_List_Item *it, Eina_Bool selected) _elm_list_unwalk(wd); } +EAPI Eina_Bool +elm_list_item_selected_get(Elm_List_Item *it) +{ + ELM_LIST_ITEM_CHECK_DELETED_RETURN(it); + + return it->selected; +} + EAPI void elm_list_item_show(Elm_List_Item *it) {