devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=5a35d9d3e3d03c9b2df0d87af6adf5a63ef6497f

commit 5a35d9d3e3d03c9b2df0d87af6adf5a63ef6497f
Author: Chris Michael <[email protected]>
Date:   Wed Nov 21 10:56:46 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_menu.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/lib/elementary/elm_menu.c b/src/lib/elementary/elm_menu.c
index 43eeba7ec8..9ea96ddf4e 100644
--- a/src/lib/elementary/elm_menu.c
+++ b/src/lib/elementary/elm_menu.c
@@ -169,8 +169,7 @@ _submenu_sizing_eval(Elm_Menu_Item_Data *parent_it)
    if (sd->menu_bar && (y_p < py))
      y_p = py;
 
-   evas_object_move(parent_it->submenu.location, x_p, y_p);
-   evas_object_resize(parent_it->submenu.location, bw, h_p);
+   evas_object_geometry_set(parent_it->submenu.location, x_p, y_p, bw, h_p);
    evas_object_size_hint_min_set(parent_it->submenu.location, bw, h_p);
    evas_object_size_hint_max_set(parent_it->submenu.location, bw, h_p);
    elm_hover_target_set(parent_it->submenu.hv, parent_it->submenu.location);

-- 


Reply via email to