jpeg pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=67313bf8aa0f6b9a7c153312baa5c7f64efafe22
commit 67313bf8aa0f6b9a7c153312baa5c7f64efafe22 Author: Godly T.Alias <godlytal...@yahoo.co.in> Date: Wed Nov 15 19:15:25 2017 +0900 CtxPopup: Add implementation for getting focused item Summary: Adding the focused_item_get implementation for ctxpopup widget for getting the focused item Signed-off-by: Godly T.Alias <godlytal...@yahoo.co.in> Test Plan: elm_object_focused_item_get Reviewers: cedric, raster, prince.dubey, shilpasingh, jpeg Reviewed By: shilpasingh Subscribers: Jaehyun_Cho, Blackmole, jpeg, rajeshps, shilpasingh Differential Revision: https://phab.enlightenment.org/D5474 --- src/lib/elementary/elc_ctxpopup.c | 8 ++++++++ src/lib/elementary/elm_ctxpopup.eo | 1 + 2 files changed, 9 insertions(+) diff --git a/src/lib/elementary/elc_ctxpopup.c b/src/lib/elementary/elc_ctxpopup.c index 717ca175e2..ed5b62dd8c 100644 --- a/src/lib/elementary/elc_ctxpopup.c +++ b/src/lib/elementary/elc_ctxpopup.c @@ -1439,6 +1439,14 @@ _elm_ctxpopup_efl_ui_menu_selected_item_get(Eo *obj EINA_UNUSED, Elm_Ctxpopup_Da } EOLIAN static Elm_Object_Item* +_elm_ctxpopup_elm_widget_focused_item_get(Eo *obj EINA_UNUSED, Elm_Ctxpopup_Data *sd) +{ + if (!sd->list) return NULL; + + return elm_object_focused_item_get(sd->list); +} + +EOLIAN static Elm_Object_Item* _elm_ctxpopup_item_prepend(Eo *obj, Elm_Ctxpopup_Data *sd, const char *label, Evas_Object *icon, Evas_Smart_Cb func, const void *data) { Eo *eo_item; diff --git a/src/lib/elementary/elm_ctxpopup.eo b/src/lib/elementary/elm_ctxpopup.eo index b7d7515e87..2941b3b0c8 100644 --- a/src/lib/elementary/elm_ctxpopup.eo +++ b/src/lib/elementary/elm_ctxpopup.eo @@ -207,6 +207,7 @@ class Elm.Ctxpopup (Efl.Ui.Layout, Efl.Ui.Focus.Layer, Elm.Interface.Atspi_Widge Efl.Ui.Translatable.translation_update; Elm.Widget.theme_apply; Elm.Widget.widget_event; + Elm.Widget.focused_item { get; } Efl.Ui.Menu.selected_item { get; } Efl.Ui.Menu.first_item { get; } Efl.Ui.Menu.last_item { get; } --