hermet pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=667744182dbebc458c6065fc9b6c80a3c41ac761

commit 667744182dbebc458c6065fc9b6c80a3c41ac761
Author: Amitesh Singh <amitesh...@samsung.com>
Date:   Tue May 19 21:21:06 2015 +0900

    ctxpopup: Added item_focus_set/item_focus_get.
    
    Summary: @feature
    
    Reviewers: raster, Hermet
    
    Reviewed By: Hermet
    
    Subscribers: seoz, sachin.dev
    
    Differential Revision: https://phab.enlightenment.org/D2439
    
    Conflicts:
    
        src/lib/elm_ctxpopup_item.eo
---
 src/lib/elc_ctxpopup.c       | 15 +++++++++++++++
 src/lib/elc_ctxpopup.h       |  2 ++
 src/lib/elm_ctxpopup_item.eo |  2 ++
 3 files changed, 19 insertions(+)

diff --git a/src/lib/elc_ctxpopup.c b/src/lib/elc_ctxpopup.c
index 543351c..f84cc0f 100644
--- a/src/lib/elc_ctxpopup.c
+++ b/src/lib/elc_ctxpopup.c
@@ -927,6 +927,21 @@ _elm_ctxpopup_item_elm_widget_item_signal_emit(Eo 
*eo_ctxpopup_it EINA_UNUSED,
    elm_object_item_signal_emit(ctxpopup_it->list_item, emission, source);
 }
 
+EOLIAN static void
+_elm_ctxpopup_item_elm_widget_item_focus_set(Eo *eo_ctxpopup_it EINA_UNUSED,
+                                             Elm_Ctxpopup_Item_Data 
*ctxpopup_it,
+                                             Eina_Bool focused)
+{
+   elm_object_item_focus_set(ctxpopup_it->list_item, focused);
+}
+
+EOLIAN static Eina_Bool
+_elm_ctxpopup_item_elm_widget_item_focus_get(Eo *eo_ctxpopup_it EINA_UNUSED,
+                                             Elm_Ctxpopup_Item_Data 
*ctxpopup_it)
+{
+   return elm_object_item_focus_get(ctxpopup_it->list_item);
+}
+
 static void
 _bg_clicked_cb(void *data,
                Evas_Object *obj EINA_UNUSED,
diff --git a/src/lib/elc_ctxpopup.h b/src/lib/elc_ctxpopup.h
index dc93ffa..1ad3de2 100644
--- a/src/lib/elc_ctxpopup.h
+++ b/src/lib/elc_ctxpopup.h
@@ -53,6 +53,8 @@
  * @li @ref elm_object_item_part_content_set
  * @li @ref elm_object_item_part_content_get
  * @li @ref elm_object_item_signal_emit
+ * @li @ref elm_object_item_focus_set
+ * @li @ref elm_object_item_focus_get
  *
  * @ref tutorial_ctxpopup shows the usage of a good deal of the API.
  * @{
diff --git a/src/lib/elm_ctxpopup_item.eo b/src/lib/elm_ctxpopup_item.eo
index 6fd5ac4..e5c324b 100644
--- a/src/lib/elm_ctxpopup_item.eo
+++ b/src/lib/elm_ctxpopup_item.eo
@@ -52,5 +52,7 @@ class Elm.Ctxpopup_Item(Elm.Widget_Item)
         Elm.Widget_Item.part_text.set;
         Elm.Widget_Item.part_content.get;
         Elm.Widget_Item.part_content.set;
+        Elm.Widget_Item.focus.set;
+        Elm.Widget_Item.focus.get;
    }
 }

-- 


Reply via email to