Summary:
Added definition for item_selected_get API
Signed-off-by: Shilpa Singh <shilpa.singh@samsung.com>
@fix
Test Plan: select an item, call item_selected_get API to check status of the item
Reviewers: cedric, CHAN
Reviewed By: CHAN
Subscribers: CHAN, rajeshps, cedric, jpeg
Differential Revision: https://phab.enlightenment.org/D3999
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
EOLIAN static Eina_Bool
_elm_multibuttonentry_item_selected_get(Eo *eo_item,
- Elm_Multibuttonentry_Item_Data *item EINA_UNUSED)
+ Elm_Multibuttonentry_Item_Data *item)
{
- //TODO : To be implemented.
+ ELM_MULTIBUTTONENTRY_DATA_GET_OR_RETURN_VAL(WIDGET(item), sd, EINA_FALSE);
if (!eo_item) return EINA_FALSE;
+ if (EO_OBJ(sd->selected_it) == eo_item)
+ return EINA_TRUE;
- return EINA_TRUE;
+ return EINA_FALSE;
}
EOLIAN static void