summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2015-10-15 16:31:00 -0700
committerCedric BAIL <cedric@osg.samsung.com>2015-10-15 16:38:24 -0700
commit505f60c4764b3a6f14bd768a813e9ff495cf8502 (patch)
tree26c0759ff55fa2d668d11842761569879ffd6274
parent33e227d32b662469f685309b0e2e86afc0df72de (diff)
downloadelementary-505f60c4764b3a6f14bd768a813e9ff495cf8502.tar.gz
toolbar: remove useless call to _sizing_eval.
_sizing_eval is very costly on toolbar as it recalc all edje part and sends signal to all of them. _item_theme_hook was already calling _sizing_eval doubling the cost of adding new item.
-rw-r--r--src/lib/elm_toolbar.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/lib/elm_toolbar.c b/src/lib/elm_toolbar.c
index df2ab9043..e93c552a6 100644
--- a/src/lib/elm_toolbar.c
+++ b/src/lib/elm_toolbar.c
@@ -3010,7 +3010,6 @@ _elm_toolbar_item_append(Eo *obj, Elm_Toolbar_Data *sd, const char *icon, const
evas_object_show(VIEW(it));
_item_theme_hook(obj, it, scale, sd->icon_size);
- _sizing_eval(obj);
sd->item_count++;
return EO_OBJ(it);
@@ -3030,7 +3029,6 @@ _elm_toolbar_item_prepend(Eo *obj, Elm_Toolbar_Data *sd, const char *icon, const
evas_object_box_prepend(sd->bx, VIEW(it));
evas_object_show(VIEW(it));
_item_theme_hook(obj, it, scale, sd->icon_size);
- _sizing_eval(obj);
sd->item_count++;
return EO_OBJ(it);
@@ -3054,7 +3052,6 @@ _elm_toolbar_item_insert_before(Eo *obj, Elm_Toolbar_Data *sd, Elm_Object_Item *
(sd->items, EINA_INLIST_GET(it), EINA_INLIST_GET(_before));
evas_object_box_insert_before(sd->bx, VIEW(it), VIEW(_before));
_item_theme_hook(obj, it, scale, sd->icon_size);
- _sizing_eval(obj);
sd->item_count++;
return EO_OBJ(it);
@@ -3078,7 +3075,6 @@ _elm_toolbar_item_insert_after(Eo *obj, Elm_Toolbar_Data *sd, Elm_Object_Item *e
(sd->items, EINA_INLIST_GET(it), EINA_INLIST_GET(_after));
evas_object_box_insert_after(sd->bx, VIEW(it), VIEW(_after));
_item_theme_hook(obj, it, scale, sd->icon_size);
- _sizing_eval(obj);
sd->item_count++;
return EO_OBJ(it);