elementary: Reduce EO calls by using geometry_set

This patch reduces EO calls by using evas_object_geometry_set rather
than calling move & resize.
This commit is contained in:
Chris Michael 2018-11-21 10:40:31 -05:00
parent 2f8221ed68
commit 7f42105cb7
1 changed files with 1 additions and 2 deletions

View File

@ -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);
}