rimmed pushed a commit to branch master. http://git.enlightenment.org/tools/eflete.git/commit/?id=2f71aea5c882562fb458ffd7333fe04516f01cb6
commit 2f71aea5c882562fb458ffd7333fe04516f01cb6 Author: Andrii Kroitor <an.kroi...@samsung.com> Date: Fri Oct 16 11:40:27 2015 +0300 part_list: add part_list_part_update method --- src/bin/ui/part_list.c | 23 +++++++++++++++++++++++ src/bin/ui/part_list.h | 6 ++++++ 2 files changed, 29 insertions(+) diff --git a/src/bin/ui/part_list.c b/src/bin/ui/part_list.c index 4c3f483..9eaf331 100644 --- a/src/bin/ui/part_list.c +++ b/src/bin/ui/part_list.c @@ -945,3 +945,26 @@ part_list_part_select(Evas_Object *obj, Part_ *part) elm_genlist_item_selected_set(elm_genlist_selected_item_get(pl->genlist), false); } } + +void +part_list_part_update(Evas_Object *obj, Part_ *part) +{ + Part_ *pr; + Elm_Object_Item *part_item; + Part_List *pl = evas_object_data_get(obj, PART_LIST_DATA); + + assert(pl != NULL); + assert(part != NULL); + + part_item = elm_genlist_first_item_get(pl->genlist); + pr = elm_object_item_data_get(part_item); + while (pr != part) + { + part_item = elm_genlist_item_next_get(part_item); + pr = elm_object_item_data_get(part_item); + + assert(pr != NULL); + } + assert(part_item != NULL); + elm_genlist_item_update(part_item); +} diff --git a/src/bin/ui/part_list.h b/src/bin/ui/part_list.h index d256f86..be79bf7 100644 --- a/src/bin/ui/part_list.h +++ b/src/bin/ui/part_list.h @@ -56,4 +56,10 @@ part_list_add(Group *group); */ void part_list_part_select(Evas_Object *obj, Part_ *part); + +/** + * @ingroup Partlist + */ +void +part_list_part_update(Evas_Object *obj, Part_ *part); #endif /* PART_LIST_H */ --