summaryrefslogtreecommitdiff
path: root/src/bin
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
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')
-rw-r--r--src/bin/e_toolbar.c9
-rw-r--r--src/bin/e_toolbar.h1
-rw-r--r--src/bin/e_widget_toolbar.c17
-rw-r--r--src/bin/e_widget_toolbar.h1
4 files changed, 28 insertions, 0 deletions
diff --git a/src/bin/e_toolbar.c b/src/bin/e_toolbar.c
index f369360..0355ceb 100644
--- a/src/bin/e_toolbar.c
+++ b/src/bin/e_toolbar.c
@@ -148,6 +148,15 @@ e_toolbar_show(E_Toolbar *tbar)
148} 148}
149 149
150EAPI void 150EAPI void
151e_toolbar_hide(E_Toolbar *tbar)
152{
153 E_OBJECT_CHECK(tbar);
154 E_OBJECT_TYPE_CHECK(tbar, E_TOOLBAR_TYPE);
155 evas_object_hide(tbar->o_event);
156 evas_object_hide(tbar->o_base);
157}
158
159EAPI void
151e_toolbar_move(E_Toolbar *tbar, int x, int y) 160e_toolbar_move(E_Toolbar *tbar, int x, int y)
152{ 161{
153 E_OBJECT_CHECK(tbar); 162 E_OBJECT_CHECK(tbar);
diff --git a/src/bin/e_toolbar.h b/src/bin/e_toolbar.h
index ac09c71..055d1e5 100644
--- a/src/bin/e_toolbar.h
+++ b/src/bin/e_toolbar.h
@@ -34,6 +34,7 @@ EAPI E_Win *e_toolbar_fwin_get (E_Toolbar *tbar);
34EAPI void e_toolbar_fm2_set (E_Toolbar *tbar, Evas_Object *fm2); 34EAPI void e_toolbar_fm2_set (E_Toolbar *tbar, Evas_Object *fm2);
35EAPI Evas_Object *e_toolbar_fm2_get (E_Toolbar *tbar); 35EAPI Evas_Object *e_toolbar_fm2_get (E_Toolbar *tbar);
36EAPI void e_toolbar_show (E_Toolbar *tbar); 36EAPI void e_toolbar_show (E_Toolbar *tbar);
37EAPI void e_toolbar_hide (E_Toolbar *tbar);
37EAPI void e_toolbar_move (E_Toolbar *tbar, int x, int y); 38EAPI void e_toolbar_move (E_Toolbar *tbar, int x, int y);
38EAPI void e_toolbar_resize (E_Toolbar *tbar, int w, int h); 39EAPI void e_toolbar_resize (E_Toolbar *tbar, int w, int h);
39EAPI void e_toolbar_move_resize (E_Toolbar *tbar, int x, int y, int w, int h); 40EAPI void e_toolbar_move_resize (E_Toolbar *tbar, int x, int y, int w, int h);
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;
diff --git a/src/bin/e_widget_toolbar.h b/src/bin/e_widget_toolbar.h
index 0455625..1dfc13d 100644
--- a/src/bin/e_widget_toolbar.h
+++ b/src/bin/e_widget_toolbar.h
@@ -8,6 +8,7 @@
8 8
9EAPI Evas_Object *e_widget_toolbar_add(Evas *evas, int icon_w, int icon_h); 9EAPI Evas_Object *e_widget_toolbar_add(Evas *evas, int icon_w, int icon_h);
10EAPI void e_widget_toolbar_item_append(Evas_Object *obj, Evas_Object *icon, const char *label, void (*func) (void *data1, void *data2), const void *data1, const void *data2); 10EAPI void e_widget_toolbar_item_append(Evas_Object *obj, Evas_Object *icon, const char *label, void (*func) (void *data1, void *data2), const void *data1, const void *data2);
11EAPI void e_widget_toolbar_item_remove(Evas_Object *obj, int num);
11EAPI void e_widget_toolbar_item_select(Evas_Object *obj, int num); 12EAPI void e_widget_toolbar_item_select(Evas_Object *obj, int num);
12EAPI void e_widget_toolbar_item_label_set(Evas_Object *obj, int num, const char *label); 13EAPI void e_widget_toolbar_item_label_set(Evas_Object *obj, int num, const char *label);
13EAPI void e_widget_toolbar_scrollable_set(Evas_Object *obj, Evas_Bool scrollable); 14EAPI void e_widget_toolbar_scrollable_set(Evas_Object *obj, Evas_Bool scrollable);