forked from enlightenment/efl
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 <godlytalias@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
This commit is contained in:
parent
a2532b8ef0
commit
67313bf8aa
|
@ -1438,6 +1438,14 @@ _elm_ctxpopup_efl_ui_menu_selected_item_get(Eo *obj EINA_UNUSED, Elm_Ctxpopup_Da
|
|||
return NULL;
|
||||
}
|
||||
|
||||
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)
|
||||
{
|
||||
|
|
|
@ -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; }
|
||||
|
|
Loading…
Reference in New Issue