summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGodly T.Alias <godly.talias@samsung.com>2019-05-30 15:46:27 +0900
committerSangHyeon Jade Lee <sh10233.lee@samsung.com>2019-05-30 15:46:53 +0900
commitcdfcd02886857d980fe12525b4e4b5a72f8f37ba (patch)
treeaca588d2f8fd6374997ad8b13df7318a2ec349ad
parent57233f552c49eb8958a76ef575d794bc3b78f177 (diff)
downloadefl-cdfcd02886857d980fe12525b4e4b5a72f8f37ba.tar.gz
Genlist: Fix for genlist item field update
Summary: Avoid unnecessary operations on unrealized item when item field update is called Test Plan: Call item_field_update on an unrealized item Reviewers: cedric, raster, SanghyeonLee Reviewed By: SanghyeonLee Subscribers: #reviewers, rajeev.jnnce, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9019
-rw-r--r--src/lib/elementary/elm_genlist.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_genlist.c b/src/lib/elementary/elm_genlist.c
index 3d12ebdf06..76e79126d7 100644
--- a/src/lib/elementary/elm_genlist.c
+++ b/src/lib/elementary/elm_genlist.c
@@ -7418,6 +7418,13 @@ _elm_genlist_item_fields_update(Eo *eo_item EINA_UNUSED, Elm_Gen_Item *it,
if (!it->item->block) return;
+ if (!it->realized)
+ {
+ if (!itf || (itf & ELM_GENLIST_ITEM_FIELD_CONTENT))
+ elm_genlist_item_update(eo_item);
+ return;
+ }
+
if ((!itf) || (itf & ELM_GENLIST_ITEM_FIELD_TEXT))
{
_item_text_realize(it, VIEW(it), &it->texts, parts);