summaryrefslogtreecommitdiff
path: root/src/bin/e_widget_toolbar.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2012-08-03 18:47:20 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2012-08-03 18:47:20 +0000
commitacafdd5077f21869fe3b7e3e687e3aabcd12fcc7 (patch)
tree9b57e17f5ce9b38f90e27822757a9e47b1f20b69 /src/bin/e_widget_toolbar.c
parent8b70cf59a7c26e15920c8669c5b65910547dc1b4 (diff)
add hacks for e_widget_toolbar_items_get() and e_widget_toolbar_item_label_get()
SVN revision: 74864
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 03cb4d8..83ec2d9 100644
--- a/src/bin/e_widget_toolbar.c
+++ b/src/bin/e_widget_toolbar.c
@@ -95,6 +95,23 @@ e_widget_toolbar_add(Evas *evas, int icon_w, int icon_h)
95 return obj; 95 return obj;
96} 96}
97 97
98EAPI const Eina_List *
99e_widget_toolbar_items_get(Evas_Object *obj)
100{
101 E_Widget_Data *wd;
102 if (!obj) return NULL;
103 if (!(wd = e_widget_data_get(obj))) return NULL;
104 return wd->items;
105}
106
107EAPI const char *
108e_widget_toolbar_item_label_get(void *item)
109{
110 Item *it = item;
111 if (!it) return NULL;
112 return edje_object_part_text_get(it->o_base, "e.text.label");
113}
114
98EAPI void 115EAPI void
99e_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) 116e_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)
100{ 117{