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
This commit is contained in:
Amitesh Singh 2015-05-19 21:21:06 +09:00 committed by ChunEon Park
parent 8506c99f26
commit 19f90dc5b7
3 changed files with 19 additions and 0 deletions

View File

@ -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,

View File

@ -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.
* @{

View File

@ -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;
}
}