summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2018-11-21 10:47:38 -0500
committerChris Michael <cp.michael@samsung.com>2018-11-21 11:25:58 -0500
commit4220c9d2d462ac3e0c888e7f03f71b919d5df557 (patch)
tree525406f5930709711a18b8862a831a91362d0f99
parentbd32bf562643fac945e4833705802b1baff059ef (diff)
downloadefl-4220c9d2d462ac3e0c888e7f03f71b919d5df557.tar.gz
elementary: Reduce EO calls by using geometry_set
This patch reduces EO calls by using evas_object_geometry_set rather than calling move & resize.
-rw-r--r--src/lib/elementary/elm_toolbar.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/elementary/elm_toolbar.c b/src/lib/elementary/elm_toolbar.c
index 4160ca0868..23c683ee83 100644
--- a/src/lib/elementary/elm_toolbar.c
+++ b/src/lib/elementary/elm_toolbar.c
@@ -1901,8 +1901,7 @@ _item_transition_start
it->trans = elm_transit_add();
elm_transit_object_add(it->trans, it->proxy);
evas_object_geometry_get(VIEW(sd->reorder_empty), &tx, &ty, NULL, NULL);
- evas_object_move(it->proxy, x, y);
- evas_object_resize(it->proxy, w, h);
+ evas_object_geometry_set(it->proxy, x, y, w, h);
evas_object_show(it->proxy);
elm_transit_effect_translation_add(it->trans, 0, 0, tx - x, 0);
@@ -2101,8 +2100,7 @@ _item_reorder_start(Elm_Toolbar_Item_Data *item)
(Evas_Object_Event_Cb)_mouse_up_reorder, item);
evas_object_geometry_get(VIEW(item), &x, &y, &w, &h);
- evas_object_resize(item->proxy, w, h);
- evas_object_move(item->proxy, x, y);
+ evas_object_geometry_set(item->proxy, x, y, w, h);
evas_object_show(item->proxy);
elm_interface_scrollable_hold_set(WIDGET(item), EINA_TRUE);