summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmitesh Singh <amitesh.sh@samsung.com>2015-06-22 12:02:55 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-06-22 12:36:57 +0200
commit4099b491614278313344123a61fd0e5be7809b70 (patch)
tree7d63043a0fc1bd4fee2e77003a4c70bf43471ef8
parent6a4d59fed00955a7037dfe7d0f19ee3767e9017b (diff)
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 <cedric@osg.samsung.com>
-rw-r--r--src/lib/elm_genlist.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c
index 225d0953f..78104db83 100644
--- a/src/lib/elm_genlist.c
+++ b/src/lib/elm_genlist.c
@@ -4442,11 +4442,11 @@ static Eina_Bool
4442_item_process(Elm_Genlist_Data *sd, 4442_item_process(Elm_Genlist_Data *sd,
4443 Elm_Gen_Item *it) 4443 Elm_Gen_Item *it)
4444{ 4444{
4445 if (!_item_block_add(sd, it)) return EINA_TRUE; 4445 if (!_item_block_add(sd, it)) return EINA_FALSE;
4446 if (!sd->blocks) 4446 if (!sd->blocks)
4447 _item_block_realize(it->item->block); 4447 _item_block_realize(it->item->block);
4448 4448
4449 return EINA_FALSE; 4449 return EINA_TRUE;
4450} 4450}
4451 4451
4452static void 4452static void
@@ -4511,7 +4511,7 @@ _queue_process(Elm_Genlist_Data *sd)
4511 it = eina_list_data_get(sd->queue); 4511 it = eina_list_data_get(sd->queue);
4512 sd->queue = eina_list_remove_list(sd->queue, sd->queue); 4512 sd->queue = eina_list_remove_list(sd->queue, sd->queue);
4513 it->item->queued = EINA_FALSE; 4513 it->item->queued = EINA_FALSE;
4514 if (_item_process(sd, it)) continue; 4514 if (!_item_process(sd, it)) continue;
4515 t = ecore_time_get(); 4515 t = ecore_time_get();
4516 _item_process_post(sd, it, EINA_TRUE); 4516 _item_process_post(sd, it, EINA_TRUE);
4517 /* same as eina_inlist_count > 1 */ 4517 /* same as eina_inlist_count > 1 */