aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/elementary
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-07-29 11:57:10 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-07-29 11:57:10 +0900
commit5f224a6671f7d9100213bc6a99745b75fa351abc (patch)
tree9def4b442c7839565671e72887156c8370acd703 /src/lib/elementary
parentfix warnings in sanhyeons's patch/fix (diff)
downloadefl-5f224a6671f7d9100213bc6a99745b75fa351abc.tar.gz
efl - elm genlist - clean up sanghyeon's patch to be less code
use if not while, no first, and timing checkis already done at end so remove from if/while. cleaner now.
Diffstat (limited to 'src/lib/elementary')
-rw-r--r--src/lib/elementary/elm_genlist.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/lib/elementary/elm_genlist.c b/src/lib/elementary/elm_genlist.c
index 4c596c49f8..7e36fb3259 100644
--- a/src/lib/elementary/elm_genlist.c
+++ b/src/lib/elementary/elm_genlist.c
@@ -7573,25 +7573,20 @@ static int
_filter_queue_process(Elm_Genlist_Data *sd)
{
int n;
- Elm_Gen_Item *it, *first;
+ Elm_Gen_Item *it;
double t0;
t0 = ecore_time_get();
for (n = 0; ((sd->filter_queue) && (sd->processed_count < ITEM_QUEUE_MAX)); n++)
{
- it = first = eina_list_data_get(sd->filter_queue);
+ it = eina_list_data_get(sd->filter_queue);
//FIXME: This is added as a fail safe code for items not yet processed.
- while (it && it->item->queued)
+ if (it && it->item->queued)
{
- if ((ecore_time_get() - t0) > (ecore_animator_frametime_get()))
- return n;
sd->filter_queue = eina_list_remove_list
(sd->filter_queue, sd->filter_queue);
sd->filter_queue = eina_list_append(sd->filter_queue, it);
it = eina_list_data_get(sd->filter_queue);
-
- //Do not iterate more than one loop
- if (it == first) return n;
}
sd->filter_queue = eina_list_remove_list(sd->filter_queue, sd->filter_queue);
_filter_item_internal(it);