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:39:33 -05:00
parent 98c8c7bf91
commit 2f8221ed68
1 changed files with 2 additions and 2 deletions

View File

@ -197,8 +197,8 @@ _transit_obj_data_recover(Elm_Transit *transit, Evas_Object *obj)
//recover the states of the object.
if (!transit->state_keep)
{
evas_object_move(obj, obj_data->state.x, obj_data->state.y);
evas_object_resize(obj, obj_data->state.w, obj_data->state.h);
evas_object_geometry_set(obj, obj_data->state.x, obj_data->state.y,
obj_data->state.w, obj_data->state.h);
evas_object_color_set(obj, obj_data->state.r, obj_data->state.g,
obj_data->state.b, obj_data->state.a);
if (obj_data->state.visible) evas_object_show(obj);