cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=db79f8499c2fc801a5bf0769f1e4089da9f03e22

commit db79f8499c2fc801a5bf0769f1e4089da9f03e22
Author: Shilpa Singh <shilpa.si...@samsung.com>
Date:   Wed Jun 8 13:48:07 2016 -0700

    elementary: add implementation for elm_multibuttonentry_item_selected_get 
API
    
    Summary:
    Added definition for item_selected_get API
    Signed-off-by: Shilpa Singh <shilpa.si...@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 <ced...@osg.samsung.com>
---
 src/lib/elementary/elc_multibuttonentry.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/lib/elementary/elc_multibuttonentry.c 
b/src/lib/elementary/elc_multibuttonentry.c
index a154571..df01d4f 100644
--- a/src/lib/elementary/elc_multibuttonentry.c
+++ b/src/lib/elementary/elc_multibuttonentry.c
@@ -1841,12 +1841,14 @@ _elm_multibuttonentry_item_selected_set(Eo *eo_item 
EINA_UNUSED,
 
 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

-- 


Reply via email to