From: Enlightenment S. <no-...@en...> - 2010-04-17 18:18:38
|
Log: 'everything' delay sliding in until items are fetched Author: jeffdameth Date: 2010-04-17 11:18:31 -0700 (Sat, 17 Apr 2010) New Revision: 48079 Modified: trunk/e/src/modules/everything/evry_plug_view_thumb.c Modified: trunk/e/src/modules/everything/evry_plug_view_thumb.c =================================================================== --- trunk/e/src/modules/everything/evry_plug_view_thumb.c 2010-04-17 17:51:00 UTC (rev 48078) +++ trunk/e/src/modules/everything/evry_plug_view_thumb.c 2010-04-17 18:18:31 UTC (rev 48079) @@ -368,10 +368,9 @@ it->visible = EINA_TRUE; } + /* fixme */ if (!eina_list_data_find(sd->queue, it)) - { - sd->queue = eina_list_append(sd->queue, it); - } + sd->queue = eina_list_append(sd->queue, it); evas_object_move(it->frame, xx, yy); evas_object_resize(it->frame, it->w, it->h); @@ -620,7 +619,7 @@ Smart_Data *sd = evas_object_smart_data_get(data); double da; double spd = (25.0/(double)e_config->framerate) / (double) (1 + sd->view->zoom); - if (sd->sliding) spd *= 2.0; + if (sd->sliding) spd *= 1.5; if (spd > 0.9) spd = 0.9; int wait = 0; @@ -1045,7 +1044,7 @@ { if (slide) { - if (!sd->animator) + if (sd->items && !sd->animator) sd->animator = ecore_animator_add(_animator, v->span); sd->sliding = 1; sd->slide_to = sd->x; |