summaryrefslogtreecommitdiff
path: root/src/bin/e_widget_toolbar.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2012-08-04 10:13:14 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2012-08-04 10:13:14 +0000
commitece66f07503c53dcf9594dac52372ca889a2341f (patch)
treefcc73c496217d34c4597edff5d716adf3b5fffbc /src/bin/e_widget_toolbar.c
parentab46fd58c1748634b7d9028e2f347a8dfb891465 (diff)
toolbar function to return count of toolbar items
SVN revision: 74877
Diffstat (limited to 'src/bin/e_widget_toolbar.c')
-rw-r--r--src/bin/e_widget_toolbar.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/bin/e_widget_toolbar.c b/src/bin/e_widget_toolbar.c
index 83ec2d9..14b0f2b 100644
--- a/src/bin/e_widget_toolbar.c
+++ b/src/bin/e_widget_toolbar.c
@@ -104,6 +104,15 @@ e_widget_toolbar_items_get(Evas_Object *obj)
104 return wd->items; 104 return wd->items;
105} 105}
106 106
107EAPI unsigned int
108e_widget_toolbar_items_count(Evas_Object *obj)
109{
110 E_Widget_Data *wd;
111 if (!obj) return 0;
112 if (!(wd = e_widget_data_get(obj))) return 0;
113 return eina_list_count(wd->items);
114}
115
107EAPI const char * 116EAPI const char *
108e_widget_toolbar_item_label_get(void *item) 117e_widget_toolbar_item_label_get(void *item)
109{ 118{