elementary: Reduce EO calls by using geometry_set
authorChris Michael <cp.michael@samsung.com>
Wed, 21 Nov 2018 15:45:48 +0000 (10:45 -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/els_tooltip.c

index 4ffcf79e6de103e6b86174fe7b89b812e8e36421..9b604217e55589e5e0ff1f528fbd8e3c7d47c050 100644 (file)
@@ -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);