devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=a61b5c380baddae2a600f40c8e6b7c2bced050c5

commit a61b5c380baddae2a600f40c8e6b7c2bced050c5
Author: Chris Michael <[email protected]>
Date:   Wed Nov 21 10:49:14 2018 -0500

    elementary: Reduce EO calls by using geometry_set
    
    This patch reduces EO calls by using evas_object_geometry_set rather
    than calling move & resize.
---
 src/lib/elementary/elm_icon.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/lib/elementary/elm_icon.c b/src/lib/elementary/elm_icon.c
index d05fcbe765..2d612afafa 100644
--- a/src/lib/elementary/elm_icon.c
+++ b/src/lib/elementary/elm_icon.c
@@ -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;
 }

-- 


Reply via email to