devilhorns pushed a commit to branch master.

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

commit 1bea98eba4f810d2d3862a2c4106ecf4f0930345
Author: Chris Michael <[email protected]>
Date:   Wed Nov 21 10:27:29 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_entry.c | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/src/lib/elementary/elm_entry.c b/src/lib/elementary/elm_entry.c
index 335f05f55f..dac8e916f6 100644
--- a/src/lib/elementary/elm_entry.c
+++ b/src/lib/elementary/elm_entry.c
@@ -1405,8 +1405,7 @@ _hoversel_position(Evas_Object *obj)
      cx = w - mw;
    if (cy + mh > h)
      cy = h - mh;
-   evas_object_move(sd->hoversel, x + cx, y + cy);
-   evas_object_resize(sd->hoversel, mw, mh);
+   evas_object_geometry_set(sd->hoversel, x + cx, y + cy, mw, mh);
 }
 
 static void
@@ -1923,8 +1922,7 @@ _magnifier_move(void *data)
    if (ty > 0) py += ty;
    if (-(tx - pw) > tw) pw -= (-((tx - pw) + tw));
    if (-(ty - ph) > th) ph -= (-((ty - ph) + th));
-   evas_object_move(sd->mgf_clip, px, py);
-   evas_object_resize(sd->mgf_clip, pw, ph);
+   evas_object_geometry_set(sd->mgf_clip, px, py, pw, ph);
 }
 
 static void
@@ -2594,8 +2592,8 @@ _entry_hover_anchor_clicked_do(Evas_Object *obj,
    ei.anchor_info = info;
 
    sd->anchor_hover.pop = elm_icon_add(obj);
-   evas_object_move(sd->anchor_hover.pop, info->x, info->y);
-   evas_object_resize(sd->anchor_hover.pop, info->w, info->h);
+   evas_object_geometry_set(sd->anchor_hover.pop,
+                            info->x, info->y, info->w, info->h);
 
    sd->anchor_hover.hover = elm_hover_add(obj);
    evas_object_event_callback_add

-- 


Reply via email to