elm elm_gengrid.c: Optimize item count calculation when an item is appended. Patch by Junki Cho <jk0811.cho@samsung.com>

Do not need to calculate the list count when a gengrid item is appended.
Just use item_count which was already calculated.
This commit is contained in:
Daniel Juyung Seo 2013-03-04 20:29:44 +09:00
parent 72a9d8a913
commit 8d1effeb20
1 changed files with 1 additions and 1 deletions

View File

@ -2708,7 +2708,7 @@ _item_append(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
if (!it) return;
sd->items = eina_inlist_append(sd->items, EINA_INLIST_GET(it));
it->position = eina_inlist_count(sd->items);
it->position = sd->item_count;
it->position_update = EINA_TRUE;
if (it->group)