summaryrefslogtreecommitdiff
path: root/src/bin/e_widget_toolbar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/e_widget_toolbar.c')
-rw-r--r--src/bin/e_widget_toolbar.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/bin/e_widget_toolbar.c b/src/bin/e_widget_toolbar.c
index f46896a..ac322e6 100644
--- a/src/bin/e_widget_toolbar.c
+++ b/src/bin/e_widget_toolbar.c
@@ -135,6 +135,23 @@ e_widget_toolbar_item_append(Evas_Object *obj, Evas_Object *icon, const char *la
135} 135}
136 136
137EAPI void 137EAPI void
138e_widget_toolbar_item_remove(Evas_Object *obj, int num)
139{
140 E_Widget_Data *wd;
141 Item *it;
142
143 wd = e_widget_data_get(obj);
144 it = eina_list_nth(wd->items, num);
145 if (it)
146 {
147 evas_object_del(it->o_base);
148 evas_object_del(it->o_icon);
149 wd->items = eina_list_remove(wd->items, it);
150 free(it);
151 }
152}
153
154EAPI void
138e_widget_toolbar_item_select(Evas_Object *obj, int num) 155e_widget_toolbar_item_select(Evas_Object *obj, int num)
139{ 156{
140 E_Widget_Data *wd; 157 E_Widget_Data *wd;