* add another _label_get() function

This also fix ticket #294 on trac :)

SVN revision: 41700
This commit is contained in:
Davide Andreoli 2009-08-12 11:18:08 +00:00
parent bf16de5092
commit 1e91fe20be
2 changed files with 18 additions and 0 deletions

View File

@ -528,6 +528,7 @@ extern "C" {
EAPI Elm_Hoversel_Item *elm_hoversel_item_add(Evas_Object *obj, const char *label, const char *icon_file, Elm_Icon_Type icon_type, void (*func) (void *data, Evas_Object *obj, void *event_info), const void *data);
EAPI void elm_hoversel_item_del(Elm_Hoversel_Item *item);
EAPI void *elm_hoversel_item_data_get(Elm_Hoversel_Item *it);
EAPI const char *elm_hoversel_item_label_get(Elm_Hoversel_Item *it);
/* smart callbacks called:
* "clicked" - the user clicked the hoversel button and popped up the sel
* "selected" - an item in the hoversel list is selected

View File

@ -390,3 +390,20 @@ elm_hoversel_item_data_get(Elm_Hoversel_Item *it)
if (!it) return NULL;
return it->data;
}
/**
* Get the text label of an hoversel item
*
* This returns the text of the label of the given hoversel item
*
* @param it The item to get the label
* @return The text label of the hoversel item
*
* @ingroup Hoversel
*/
EAPI const char *
elm_hoversel_item_label_get(Elm_Hoversel_Item *it)
{
if (!it) return NULL;
return it->label;
}