devilhorns pushed a commit to branch master.

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

commit 7f42105cb7e699edfdd1d988c9dcf4c8d670a7b8
Author: Chris Michael <[email protected]>
Date:   Wed Nov 21 10:40:31 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_code_widget.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/lib/elementary/elm_code_widget.c 
b/src/lib/elementary/elm_code_widget.c
index dba2857682..af10ec0496 100644
--- a/src/lib/elementary/elm_code_widget.c
+++ b/src/lib/elementary/elm_code_widget.c
@@ -327,8 +327,7 @@ _elm_code_widget_cursor_update(Elm_Code_Widget *widget, 
Elm_Code_Widget_Data *pd
         elm_layout_signal_emit(pd->cursor_rect, "elm,action,focus", "elm");
      }
 
-   evas_object_resize(pd->cursor_rect, cw/8, ch);
-   evas_object_move(pd->cursor_rect, cx, cy);
+   evas_object_geometry_set(pd->cursor_rect, cx, cy, cw/8, ch);
    evas_object_show(pd->cursor_rect);
 }
 

-- 


Reply via email to