diff options
author | Godly T.Alias <godlytalias@yahoo.co.in> | 2017-11-15 19:15:25 +0900 |
---|---|---|
committer | Jean-Philippe Andre <jp.andre@samsung.com> | 2017-11-15 19:29:00 +0900 |
commit | 67313bf8aa0f6b9a7c153312baa5c7f64efafe22 (patch) | |
tree | b36a733f40fd051631d98d5080b360c64b0be9c3 /src/lib/elementary/elc_ctxpopup.c | |
parent | a2532b8ef0a69b00019d3ea5cf87032de4fdd201 (diff) |
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
Diffstat (limited to 'src/lib/elementary/elc_ctxpopup.c')
-rw-r--r-- | src/lib/elementary/elc_ctxpopup.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/elementary/elc_ctxpopup.c b/src/lib/elementary/elc_ctxpopup.c index 717ca17..ed5b62d 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 | |||
1439 | } | 1439 | } |
1440 | 1440 | ||
1441 | EOLIAN static Elm_Object_Item* | 1441 | EOLIAN static Elm_Object_Item* |
1442 | _elm_ctxpopup_elm_widget_focused_item_get(Eo *obj EINA_UNUSED, Elm_Ctxpopup_Data *sd) | ||
1443 | { | ||
1444 | if (!sd->list) return NULL; | ||
1445 | |||
1446 | return elm_object_focused_item_get(sd->list); | ||
1447 | } | ||
1448 | |||
1449 | EOLIAN static Elm_Object_Item* | ||
1442 | _elm_ctxpopup_item_prepend(Eo *obj, Elm_Ctxpopup_Data *sd, const char *label, Evas_Object *icon, Evas_Smart_Cb func, const void *data) | 1450 | _elm_ctxpopup_item_prepend(Eo *obj, Elm_Ctxpopup_Data *sd, const char *label, Evas_Object *icon, Evas_Smart_Cb func, const void *data) |
1443 | { | 1451 | { |
1444 | Eo *eo_item; | 1452 | Eo *eo_item; |