forked from enlightenment/efl
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:
parent
2f8221ed68
commit
7f42105cb7
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue