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:
parent
72a9d8a913
commit
8d1effeb20
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue