devilhorns pushed a commit to branch master.

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

commit 7bddabaa33323177f085041ce7513dd5d755ec69
Author: Chris Michael <[email protected]>
Date:   Wed Nov 21 10:45:48 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/els_tooltip.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/lib/elementary/els_tooltip.c b/src/lib/elementary/els_tooltip.c
index 4ffcf79e6d..9b604217e5 100644
--- a/src/lib/elementary/els_tooltip.c
+++ b/src/lib/elementary/els_tooltip.c
@@ -671,8 +671,7 @@ _elm_tooltip_reconfigure(Elm_Tooltip *tt)
    // XXX: if this is a window for toolkit this relies on abs positioning
    // and this is not portable to wayland so we need relative positioning
    // implemented lower down for this
-   evas_object_move(tt->tt_win ? : tt->tooltip, tx, ty);
-   evas_object_resize(tt->tt_win ? : tt->tooltip, tw, th);
+   evas_object_geometry_set(tt->tt_win ? : tt->tooltip, tx, ty, tw, th);
    TTDBG("FINAL: tx=%d,ty=%d,tw=%d,th=%d\n", tx, ty, tw, th);
    evas_object_show(tt->tooltip);
 

-- 


Reply via email to