summaryrefslogtreecommitdiff
path: root/src/bin/e_widget_toolbar.c
diff options
context:
space:
mode:
authorViktor Kojouharov <vkojouharov@gmail.com>2009-04-28 17:38:09 +0000
committerViktor Kojouharov <vkojouharov@gmail.com>2009-04-28 17:38:09 +0000
commitd9f453e443c57d055be1fae994e7d7924ded014c (patch)
treeb0993738612c548279bae5bd7fd5a1de6e4b4f6d /src/bin/e_widget_toolbar.c
parent5f4f968653bf5792b361c233de8ef2c8298bd3fa (diff)
improvements to the tabbed e_fwin. changing tabs will not cause a reload, since each tab holds its own fm object.
ctrl+w will close the current tab. if there are no more tabs, the window will be closed SVN revision: 40447
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;