forked from enlightenment/efl
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:
parent
beaa784cb5
commit
e2862ef2e2
|
@ -1999,9 +1999,8 @@ _item_place(Elm_Gen_Item *it,
|
|||
}
|
||||
if (wsd->reorder_it == it)
|
||||
{
|
||||
evas_object_move(VIEW(it), wsd->reorder_item_x,
|
||||
wsd->reorder_item_y);
|
||||
evas_object_resize(VIEW(it), iw, ih);
|
||||
evas_object_geometry_set(VIEW(it), wsd->reorder_item_x,
|
||||
wsd->reorder_item_y, iw, ih);
|
||||
return;
|
||||
}
|
||||
else
|
||||
|
@ -2113,8 +2112,7 @@ _item_place(Elm_Gen_Item *it,
|
|||
}
|
||||
if (!it->group)
|
||||
{
|
||||
evas_object_move(VIEW(it), x, y);
|
||||
evas_object_resize(VIEW(it), iw, ih);
|
||||
evas_object_geometry_set(VIEW(it), x, y, iw, ih);
|
||||
}
|
||||
else
|
||||
item->group_realized = EINA_TRUE;
|
||||
|
@ -2161,10 +2159,8 @@ _group_item_place(Elm_Gengrid_Pan_Data *psd)
|
|||
(WIDGET(it), ELM_GENGRID_EVENT_REALIZED, EO_OBJ(it));
|
||||
_flush_focus_on_realization(WIDGET(it), it);
|
||||
}
|
||||
evas_object_move
|
||||
(VIEW(it), GG_IT(it)->gx,
|
||||
GG_IT(it)->gy);
|
||||
evas_object_resize(VIEW(it), iw, ih);
|
||||
evas_object_geometry_set(VIEW(it), GG_IT(it)->gx, GG_IT(it)->gy,
|
||||
iw, ih);
|
||||
evas_object_raise(VIEW(it));
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue