implement elm_gen_item_selected_get

SVN revision: 64278
This commit is contained in:
Mike Blumenkrantz 2011-10-21 23:18:48 +00:00
parent b148562870
commit 4ce2a15b77
2 changed files with 8 additions and 0 deletions

View File

@ -7922,6 +7922,7 @@ extern "C" {
};
EAPI void elm_gen_clear(Evas_Object *obj);
EAPI void elm_gen_item_selected_set(Elm_Gen_Item *it, Eina_Bool selected);
EAPI Eina_Bool elm_gen_item_selected_get(const Elm_Gen_Item *it);
/**
* @defgroup Gengrid Gengrid (Generic grid)

View File

@ -517,3 +517,10 @@ elm_gen_clear(Evas_Object *obj)
evas_event_thaw(evas_object_evas_get(wd->obj));
evas_event_thaw_eval(evas_object_evas_get(wd->obj));
}
EAPI Eina_Bool
elm_gen_item_selected_get(const Elm_Gen_Item *it)
{
ELM_WIDGET_ITEM_WIDTYPE_CHECK_OR_RETURN(it, EINA_FALSE);
return it->selected;
}