* elementary: Add elm_toolbar_item_selected_get and some const.

Patch by Mike Blumenkrantz (zmike) <mike@zentific.com>.

SVN revision: 47629
This commit is contained in:
Cedric BAIL 2010-03-31 16:38:37 +00:00
parent b30117f449
commit 341d5cff52
2 changed files with 10 additions and 2 deletions

View File

@ -767,7 +767,8 @@ extern "C" {
EAPI int elm_toolbar_icon_size_get(const Evas_Object *obj);
EAPI Elm_Toolbar_Item *elm_toolbar_item_add(Evas_Object *obj, Evas_Object *icon, const char *label, Evas_Smart_Cb func, const void *data);
EAPI Evas_Object *elm_toolbar_item_icon_get(Elm_Toolbar_Item *item);
EAPI const char *elm_toolbar_item_label_get(Elm_Toolbar_Item *item);
EAPI const char *elm_toolbar_item_label_get(const Elm_Toolbar_Item *item);
EAPI Eina_Bool elm_toolbar_item_selected_get(const Elm_Toolbar_Item *item);
EAPI void elm_toolbar_item_label_set(Elm_Toolbar_Item *item, const char *label);
EAPI void elm_toolbar_item_del(Elm_Toolbar_Item *item);
EAPI void elm_toolbar_item_del_cb_set(Elm_Toolbar_Item *it, Evas_Smart_Cb func);

View File

@ -406,12 +406,19 @@ elm_toolbar_item_icon_get(Elm_Toolbar_Item *item)
EAPI const char *
elm_toolbar_item_label_get(Elm_Toolbar_Item *item)
elm_toolbar_item_label_get(const Elm_Toolbar_Item *item)
if (!item) return NULL;
return item->label;
EAPI Eina_Bool
elm_toolbar_item_selected_get(const Elm_Toolbar_Item *item)
if (!item) return EINA_FALSE;
return item->selected;
EAPI void
elm_toolbar_item_label_set(Elm_Toolbar_Item *item, const char *label)