From 056036bb944654be233a2a224bf54365dd32809e Mon Sep 17 00:00:00 2001 From: Yun ilkook Date: Fri, 16 Sep 2011 17:48:32 +0900 Subject: [PATCH] [store] Changed the "loading" text to title name of a item Change-Id: I2b2bb21e535b5277acbfb93548b4c86deafd9d2e --- src/lib/elm_store.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/lib/elm_store.c b/src/lib/elm_store.c index 2f56835..25eb265 100644 --- a/src/lib/elm_store.c +++ b/src/lib/elm_store.c @@ -28,7 +28,7 @@ #define ELM_STORE_FILESYSTEM_MAGIC 0x3f89ea57 #define ELM_STORE_DBSYSTEM_MAGIC 0x3f89ea58 #define ELM_STORE_ITEM_MAGIC 0x5afe8c1d -#define CACHE_COUNT 128 +#define CACHE_COUNT 1024 struct _Elm_Store { @@ -879,12 +879,18 @@ _item_label_get(void *data, Evas_Object *obj __UNUSED__, const char *part) switch (m->type) { case ELM_STORE_ITEM_MAPPING_LABEL: + LKU(sti->lock); s = *(char **)(((unsigned char *)sti->data) + m->offset); + LKL(sti->lock); break; case ELM_STORE_ITEM_MAPPING_CUSTOM: if (m->details.custom.func) - s = m->details.custom.func(sti->data, sti, part); + { + LKU(sti->lock); + s = m->details.custom.func(sti->data, sti, part); + LKL(sti->lock); + } break; default: @@ -909,7 +915,11 @@ _item_label_get(void *data, Evas_Object *obj __UNUSED__, const char *part) if (m->type == ELM_STORE_ITEM_MAPPING_CUSTOM) { if (m->details.custom.func) - s = m->details.custom.func(NULL, sti, part); + { + LKU(sti->lock); + s = m->details.custom.func(sti->item_info, sti, part); + LKL(sti->lock); + } if (s) { -- 2.7.4