summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2015-10-15 16:31:00 -0700
committerNicolas Aguirre <aguirre.nicolas@gmail.com>2015-11-12 10:15:03 +0100
commitd930ac230fdb7fcc0d568c40ddf7301dc28b471d (patch)
tree26c0759ff55fa2d668d11842761569879ffd6274
parent894a008b68c674589cd4d944e491f2f8fdc15b9a (diff)
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
3010 evas_object_show(VIEW(it)); 3010 evas_object_show(VIEW(it));
3011 3011
3012 _item_theme_hook(obj, it, scale, sd->icon_size); 3012 _item_theme_hook(obj, it, scale, sd->icon_size);
3013 _sizing_eval(obj);
3014 sd->item_count++; 3013 sd->item_count++;
3015 3014
3016 return EO_OBJ(it); 3015 return EO_OBJ(it);
@@ -3030,7 +3029,6 @@ _elm_toolbar_item_prepend(Eo *obj, Elm_Toolbar_Data *sd, const char *icon, const
3030 evas_object_box_prepend(sd->bx, VIEW(it)); 3029 evas_object_box_prepend(sd->bx, VIEW(it));
3031 evas_object_show(VIEW(it)); 3030 evas_object_show(VIEW(it));
3032 _item_theme_hook(obj, it, scale, sd->icon_size); 3031 _item_theme_hook(obj, it, scale, sd->icon_size);
3033 _sizing_eval(obj);
3034 sd->item_count++; 3032 sd->item_count++;
3035 3033
3036 return EO_OBJ(it); 3034 return EO_OBJ(it);
@@ -3054,7 +3052,6 @@ _elm_toolbar_item_insert_before(Eo *obj, Elm_Toolbar_Data *sd, Elm_Object_Item *
3054 (sd->items, EINA_INLIST_GET(it), EINA_INLIST_GET(_before)); 3052 (sd->items, EINA_INLIST_GET(it), EINA_INLIST_GET(_before));
3055 evas_object_box_insert_before(sd->bx, VIEW(it), VIEW(_before)); 3053 evas_object_box_insert_before(sd->bx, VIEW(it), VIEW(_before));
3056 _item_theme_hook(obj, it, scale, sd->icon_size); 3054 _item_theme_hook(obj, it, scale, sd->icon_size);
3057 _sizing_eval(obj);
3058 sd->item_count++; 3055 sd->item_count++;
3059 3056
3060 return EO_OBJ(it); 3057 return EO_OBJ(it);
@@ -3078,7 +3075,6 @@ _elm_toolbar_item_insert_after(Eo *obj, Elm_Toolbar_Data *sd, Elm_Object_Item *e
3078 (sd->items, EINA_INLIST_GET(it), EINA_INLIST_GET(_after)); 3075 (sd->items, EINA_INLIST_GET(it), EINA_INLIST_GET(_after));
3079 evas_object_box_insert_after(sd->bx, VIEW(it), VIEW(_after)); 3076 evas_object_box_insert_after(sd->bx, VIEW(it), VIEW(_after));
3080 _item_theme_hook(obj, it, scale, sd->icon_size); 3077 _item_theme_hook(obj, it, scale, sd->icon_size);
3081 _sizing_eval(obj);
3082 sd->item_count++; 3078 sd->item_count++;
3083 3079
3084 return EO_OBJ(it); 3080 return EO_OBJ(it);