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:49:14 -05:00
parent 0f00fa0777
commit a61b5c380b
1 changed files with 1 additions and 4 deletions

View File

@ -355,10 +355,7 @@ _elm_icon_efl_file_file_set(Eo *obj, Elm_Icon_Data *sd, const char *file, const
return EINA_FALSE;
}
evas_object_move(id->img, id->img_x,
id->img_y);
evas_object_resize(id->img, id->img_w,
id->img_h);
evas_object_geometry_set(id->img, id->img_x, id->img_y, id->img_w, id->img_h);
return EINA_TRUE;
}