aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2018-11-21 10:45:04 -0500
committerChris Michael <cp.michael@samsung.com>2018-11-21 11:25:58 -0500
commit275165423aa7b228327bc2d9872d65ead978a6c5 (patch)
tree9e01f895f672f31abda493fb97c485cfe035403a
parentelementary: Reduce EO calls by using geometry_set (diff)
downloadefl-275165423aa7b228327bc2d9872d65ead978a6c5.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/elm_access.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/lib/elementary/elm_access.c b/src/lib/elementary/elm_access.c
index 11247e4050..f5dcb242dd 100644
--- a/src/lib/elementary/elm_access.c
+++ b/src/lib/elementary/elm_access.c
@@ -869,8 +869,7 @@ _elm_access_object_highlight(Evas_Object *obj)
_access_obj_hilight_resize_cb, NULL);
evas_object_raise(o);
evas_object_geometry_get(obj, &x, &y, &w, &h);
- evas_object_move(o, x, y);
- evas_object_resize(o, w, h);
+ evas_object_geometry_set(o, x, y, w, h);
widget = _elm_access_widget_target_get(obj);
if (widget)
@@ -965,8 +964,7 @@ _access_object_register(Evas_Object *obj, Evas_Object *parent)
_content_move, ao);
evas_object_geometry_get(obj, &x, &y, &w, &h);
- evas_object_move(ao, x, y);
- evas_object_resize(ao, w, h);
+ evas_object_geometry_set(ao, x, y, w, h);
evas_object_show(ao);
/* register access object */
@@ -1209,8 +1207,7 @@ _elm_access_widget_item_register(Elm_Widget_Item_Data *item)
_content_move, ao);
evas_object_geometry_get(ho, &x, &y, &w, &h);
- evas_object_move(ao, x, y);
- evas_object_resize(ao, w, h);
+ evas_object_geometry_set(ao, x, y, w, h);
evas_object_show(ao);
// register access object