From 4099b491614278313344123a61fd0e5be7809b70 Mon Sep 17 00:00:00 2001 From: Amitesh Singh Date: Mon, 22 Jun 2015 12:02:55 +0200 Subject: [PATCH] elm_genlist: code refractoring of _item_process Summary: When item_process is success, then we want to call _item_process_post. Old code was confusing before. Reviewers: raster, Hermet, SanghyeonLee Subscribers: seoz, sachin.dev Differential Revision: https://phab.enlightenment.org/D2739 Signed-off-by: Cedric BAIL --- src/lib/elm_genlist.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c index 225d095..78104db 100644 --- a/src/lib/elm_genlist.c +++ b/src/lib/elm_genlist.c @@ -4442,11 +4442,11 @@ static Eina_Bool _item_process(Elm_Genlist_Data *sd, Elm_Gen_Item *it) { - if (!_item_block_add(sd, it)) return EINA_TRUE; + if (!_item_block_add(sd, it)) return EINA_FALSE; if (!sd->blocks) _item_block_realize(it->item->block); - return EINA_FALSE; + return EINA_TRUE; } static void @@ -4511,7 +4511,7 @@ _queue_process(Elm_Genlist_Data *sd) it = eina_list_data_get(sd->queue); sd->queue = eina_list_remove_list(sd->queue, sd->queue); it->item->queued = EINA_FALSE; - if (_item_process(sd, it)) continue; + if (!_item_process(sd, it)) continue; t = ecore_time_get(); _item_process_post(sd, it, EINA_TRUE); /* same as eina_inlist_count > 1 */ -- 2.7.4