From 1f56dc46b85f5c1faa7c5747af8e18c6019a7aea Mon Sep 17 00:00:00 2001 From: Jaehwan Kim Date: Tue, 15 May 2012 07:00:47 +0000 Subject: [PATCH] The elm_toolbar_iteams_count have to return only the number of manually added items. SVN revision: 71096 --- src/lib/elm_toolbar.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/elm_toolbar.c b/src/lib/elm_toolbar.c index c5a36cf..6884690 100644 --- a/src/lib/elm_toolbar.c +++ b/src/lib/elm_toolbar.c @@ -1035,7 +1035,6 @@ _item_new(Evas_Object *obj, const char *icon, const char *label, Evas_Smart_Cb f _resize_item, obj); if ((!wd->items) && (wd->select_mode == ELM_OBJECT_SELECT_MODE_ALWAYS)) _item_select(it); - wd->item_count++; return it; } @@ -1318,6 +1317,7 @@ elm_toolbar_item_append(Evas_Object *obj, const char *icon, const char *label, E _theme_hook_item(obj, it, scale, wd->icon_size); _sizing_eval(obj); + wd->item_count++; return (Elm_Object_Item *)it; } @@ -1338,6 +1338,7 @@ elm_toolbar_item_prepend(Evas_Object *obj, const char *icon, const char *label, evas_object_show(VIEW(it)); _theme_hook_item(obj, it, scale, wd->icon_size); _sizing_eval(obj); + wd->item_count++; return (Elm_Object_Item *)it; } @@ -1363,6 +1364,7 @@ elm_toolbar_item_insert_before(Evas_Object *obj, Elm_Object_Item *before, const evas_object_show(VIEW(it)); _theme_hook_item(obj, it, scale, wd->icon_size); _sizing_eval(obj); + wd->item_count++; return (Elm_Object_Item *)it; } @@ -1388,6 +1390,7 @@ elm_toolbar_item_insert_after(Evas_Object *obj, Elm_Object_Item *after, const ch evas_object_show(VIEW(it)); _theme_hook_item(obj, it, scale, wd->icon_size); _sizing_eval(obj); + wd->item_count++; return (Elm_Object_Item *)it; } -- 2.7.4