diff options
author | Chris Michael <cp.michael@samsung.com> | 2018-11-21 10:41:23 -0500 |
---|---|---|
committer | Chris Michael <cp.michael@samsung.com> | 2018-11-21 11:25:58 -0500 |
commit | e8298d8d447f20ac76ca344dd2a1945f5870202c (patch) | |
tree | ebfc883d93dbf57f9d043f0bf899bcb3434bc7c1 | |
parent | 7f42105cb7e699edfdd1d988c9dcf4c8d670a7b8 (diff) | |
download | efl-e8298d8d447f20ac76ca344dd2a1945f5870202c.tar.gz |
elementary: Reduce EO calls by using geometry_set
This patch reduces EO calls by using evas_object_geometry_set rather
than calling move & resize.
-rw-r--r-- | src/lib/elementary/elc_multibuttonentry.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/elementary/elc_multibuttonentry.c b/src/lib/elementary/elc_multibuttonentry.c index 2ea4b93426..d20f477d38 100644 --- a/src/lib/elementary/elc_multibuttonentry.c +++ b/src/lib/elementary/elc_multibuttonentry.c @@ -1391,11 +1391,11 @@ _box_layout_cb(Evas_Object *o, linew = ww; } - evas_object_move(obj, - ((!rtl) ? (xx) : (x + (w - (xx - x) - ww))) - + (Evas_Coord)(((double)(ww - ow)) * ax), - yy + (Evas_Coord)(((double)(hh - oh)) * ay)); - evas_object_resize(obj, ow, oh); + evas_object_geometry_set(obj, + ((!rtl) ? (xx) : (x + (w - (xx - x) - ww))) + + (Evas_Coord)(((double)(ww - ow)) * ax), + yy + (Evas_Coord)(((double)(hh - oh)) * ay), + ow, oh); xx += ww; xx += priv->pad.h; |