summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmitesh Singh <amitesh.sh@samsung.com>2015-05-19 21:21:06 +0900
committerChunEon Park <hermet@hermet.pe.kr>2015-05-19 21:22:13 +0900
commit667744182dbebc458c6065fc9b6c80a3c41ac761 (patch)
tree60ef60436dfb9d4a1ad489853309713c40cfc8fe
parent4c35ee470ea3bd17b21d608d715733a0619bb95c (diff)
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
-rw-r--r--src/lib/elc_ctxpopup.c15
-rw-r--r--src/lib/elc_ctxpopup.h2
-rw-r--r--src/lib/elm_ctxpopup_item.eo2
3 files changed, 19 insertions, 0 deletions
diff --git a/src/lib/elc_ctxpopup.c b/src/lib/elc_ctxpopup.c
index 543351ca7..f84cc0f4d 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,
927 elm_object_item_signal_emit(ctxpopup_it->list_item, emission, source); 927 elm_object_item_signal_emit(ctxpopup_it->list_item, emission, source);
928} 928}
929 929
930EOLIAN static void
931_elm_ctxpopup_item_elm_widget_item_focus_set(Eo *eo_ctxpopup_it EINA_UNUSED,
932 Elm_Ctxpopup_Item_Data *ctxpopup_it,
933 Eina_Bool focused)
934{
935 elm_object_item_focus_set(ctxpopup_it->list_item, focused);
936}
937
938EOLIAN static Eina_Bool
939_elm_ctxpopup_item_elm_widget_item_focus_get(Eo *eo_ctxpopup_it EINA_UNUSED,
940 Elm_Ctxpopup_Item_Data *ctxpopup_it)
941{
942 return elm_object_item_focus_get(ctxpopup_it->list_item);
943}
944
930static void 945static void
931_bg_clicked_cb(void *data, 946_bg_clicked_cb(void *data,
932 Evas_Object *obj EINA_UNUSED, 947 Evas_Object *obj EINA_UNUSED,
diff --git a/src/lib/elc_ctxpopup.h b/src/lib/elc_ctxpopup.h
index dc93ffa5b..1ad3de29b 100644
--- a/src/lib/elc_ctxpopup.h
+++ b/src/lib/elc_ctxpopup.h
@@ -53,6 +53,8 @@
53 * @li @ref elm_object_item_part_content_set 53 * @li @ref elm_object_item_part_content_set
54 * @li @ref elm_object_item_part_content_get 54 * @li @ref elm_object_item_part_content_get
55 * @li @ref elm_object_item_signal_emit 55 * @li @ref elm_object_item_signal_emit
56 * @li @ref elm_object_item_focus_set
57 * @li @ref elm_object_item_focus_get
56 * 58 *
57 * @ref tutorial_ctxpopup shows the usage of a good deal of the API. 59 * @ref tutorial_ctxpopup shows the usage of a good deal of the API.
58 * @{ 60 * @{
diff --git a/src/lib/elm_ctxpopup_item.eo b/src/lib/elm_ctxpopup_item.eo
index 6fd5ac4cd..e5c324b25 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)
52 Elm.Widget_Item.part_text.set; 52 Elm.Widget_Item.part_text.set;
53 Elm.Widget_Item.part_content.get; 53 Elm.Widget_Item.part_content.get;
54 Elm.Widget_Item.part_content.set; 54 Elm.Widget_Item.part_content.set;
55 Elm.Widget_Item.focus.set;
56 Elm.Widget_Item.focus.get;
55 } 57 }
56} 58}