elementary: Reduce EO calls by using geometry_set
authorChris Michael <cp.michael@samsung.com>
Wed, 21 Nov 2018 15:49:14 +0000 (10:49 -0500)
committerHermet Park <hermetpark@gmail.com>
Wed, 5 Dec 2018 05:30:08 +0000 (14:30 +0900)
This patch reduces EO calls by using evas_object_geometry_set rather
than calling move & resize.

src/lib/elementary/elm_icon.c

index 92eb5bd..4a0165d 100644 (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;
 }