elementary: Reduce EO calls by using geometry_set

This patch reduces EO calls by using evas_object_geometry_set rather
than calling move & resize.
This commit is contained in:
Chris Michael 2018-11-21 10:46:31 -05:00
parent 7bddabaa33
commit bd32bf5626
1 changed files with 1 additions and 2 deletions

View File

@ -98,8 +98,7 @@ _position_items(Elm_Segment_Control_Data *sd)
EINA_LIST_FOREACH(sd->items, l, eo_item)
{
ELM_SEGMENT_ITEM_DATA_GET(eo_item, it);
evas_object_move(VIEW(it), pos, by);
evas_object_resize(VIEW(it), sd->item_width, bh);
evas_object_geometry_set(VIEW(it), pos, by, sd->item_width, bh);
if (rtl) pos -= sd->item_width;
else pos += sd->item_width;
}