The separator is not a real item. So it shouldn't be counted.
authorjaehwan <jaehwan@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 17 May 2012 01:37:50 +0000 (01:37 +0000)
committerJaehwan Kim <jae.hwan.kim@samsung.com>
Fri, 29 Jun 2012 06:13:43 +0000 (15:13 +0900)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@71185 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elm_toolbar.c

index e5b1dad..6a0b4e1 100644 (file)
@@ -1638,6 +1638,7 @@ elm_toolbar_item_separator_set(Elm_Object_Item *it, Eina_Bool separator)
    item->separator = separator;
    scale = (elm_widget_scale_get(obj) * _elm_config->scale);
    _theme_hook_item(obj, item, scale, wd->icon_size);
+   wd->item_count--;
 }
 
 EAPI Eina_Bool