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)
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,
7418 7418
7419 if (!it->item->block) return; 7419 if (!it->item->block) return;
7420 7420
7421 if (!it->realized)
7422 {
7423 if (!itf || (itf & ELM_GENLIST_ITEM_FIELD_CONTENT))
7424 elm_genlist_item_update(eo_item);
7425 return;
7426 }
7427
7421 if ((!itf) || (itf & ELM_GENLIST_ITEM_FIELD_TEXT)) 7428 if ((!itf) || (itf & ELM_GENLIST_ITEM_FIELD_TEXT))
7422 { 7429 {
7423 _item_text_realize(it, VIEW(it), &it->texts, parts); 7430 _item_text_realize(it, VIEW(it), &it->texts, parts);