patch from disco-man! :)

SVN revision: 47799
This commit is contained in:
Carsten Haitzler 2010-04-07 01:31:36 +00:00
parent baa7e26d78
commit 0e56acdbcb
2 changed files with 19 additions and 0 deletions

View File

@ -754,6 +754,7 @@ extern "C" {
EAPI Evas_Object *elm_hoversel_icon_get(const Evas_Object *obj);
EAPI void elm_hoversel_hover_begin(Evas_Object *obj);
EAPI void elm_hoversel_hover_end(Evas_Object *obj);
EAPI Eina_Bool elm_hoversel_expanded_get(Evas_Object *obj);
EAPI void elm_hoversel_clear(Evas_Object *obj);
EAPI const Eina_List * elm_hoversel_items_get(const Evas_Object *obj);
EAPI Elm_Hoversel_Item *elm_hoversel_item_add(Evas_Object *obj, const char *label, const char *icon_file, Elm_Icon_Type icon_type, Evas_Smart_Cb func, const void *data);

View File

@ -424,6 +424,24 @@ elm_hoversel_hover_end(Evas_Object *obj)
evas_object_smart_callback_call(obj, "dismissed", NULL);
}
/**
* Returns whether the hoversel is expanded.
*
* This will return EINA_TRUE if the hoversel is expanded or
* EINA_FALSE if it is not expanded.
* @param obj The hoversel object
*
* @ingroup Hoversel
*/
EAPI Eina_Bool
elm_hoversel_expanded_get(Evas_Object *obj)
{
ELM_CHECK_WIDTYPE(obj, widtype) EINA_FALSE;
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return EINA_FALSE;
return (wd->hover) ? EINA_TRUE : EINA_FALSE;
}
/**
* Remove all the items from the given hoversel object.
*