summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeunggyun Kim <sgyun.kim@samsung.com>2011-04-07 04:35:08 +0000
committerCarsten Haitzler <raster@rasterman.com>2011-04-07 04:35:08 +0000
commit774a525f45edec65b74fb652df54114afd07492b (patch)
treee4332a7856fcaaaf0b4b12591d1f325aa00137fc
parent0bf42ce2a992cc3293655579053876646c8ee14f (diff)
From: Seunggyun Kim <sgyun.kim@samsung.com>
Subject: [E-devel] [Patch] elm_genlist : elm_genlist_realized_items_update api added I added elm_genlist_realized_items_update api. elm_genlist_item_update api already exists. But If the application want to change all realized items using this api, application always have to check genlist all realized items and call elm_genlist_item_update api. This routine is being used at many functions of application. So I made elm_genlist_realized_items_update api. This helps application to update easily all realized items at a time. SVN revision: 58403
-rw-r--r--src/lib/Elementary.h.in1
-rw-r--r--src/lib/elm_genlist.c25
2 files changed, 26 insertions, 0 deletions
diff --git a/src/lib/Elementary.h.in b/src/lib/Elementary.h.in
index 5c45feffa..e4c3ca5d1 100644
--- a/src/lib/Elementary.h.in
+++ b/src/lib/Elementary.h.in
@@ -1844,6 +1844,7 @@ extern "C" {
1844 EAPI const char *elm_genlist_item_cursor_style_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1); 1844 EAPI const char *elm_genlist_item_cursor_style_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
1845 EAPI void elm_genlist_item_cursor_engine_only_set(Elm_Genlist_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1); 1845 EAPI void elm_genlist_item_cursor_engine_only_set(Elm_Genlist_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
1846 EAPI Eina_Bool elm_genlist_item_cursor_engine_only_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1); 1846 EAPI Eina_Bool elm_genlist_item_cursor_engine_only_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
1847 EAPI void elm_genlist_realized_items_update(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1847 /* smart callbacks called: 1848 /* smart callbacks called:
1848 * "clicked,double" - This is called when a user has double-clicked an item. The 1849 * "clicked,double" - This is called when a user has double-clicked an item. The
1849 * event_info parameter is the genlist item that was double-clicked. 1850 * event_info parameter is the genlist item that was double-clicked.
diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c
index 38ee1ed74..c8c2a17b4 100644
--- a/src/lib/elm_genlist.c
+++ b/src/lib/elm_genlist.c
@@ -4920,3 +4920,28 @@ elm_genlist_scroller_policy_get(const Evas_Object *obj,
4920 if (policy_v) *policy_v = (Elm_Scroller_Policy)s_policy_v; 4920 if (policy_v) *policy_v = (Elm_Scroller_Policy)s_policy_v;
4921} 4921}
4922 4922
4923/**
4924 * Update the contents of all realized items
4925 *
4926 * This updates all realized items by calling all the item class functions again
4927 * to get the icons, labels and states. Use this when the original
4928 * item data has changed and the changes are desired to be reflected.
4929 *
4930 * @param it The item
4931 *
4932 * @ingroup Genlist
4933 */
4934EAPI void
4935elm_genlist_realized_items_update(const Evas_Object *obj)
4936{
4937 ELM_CHECK_WIDTYPE(obj, widtype);
4938
4939 Eina_List *list, *l;
4940 Elm_Genlist_Item *it;
4941
4942 list = elm_genlist_realized_items_get(obj);
4943 EINA_LIST_FOREACH(list, l, it)
4944 elm_genlist_item_update(it);
4945}
4946
4947