diff options
author | Amitesh Singh <amitesh.sh@samsung.com> | 2015-05-19 21:24:35 +0900 |
---|---|---|
committer | ChunEon Park <hermet@hermet.pe.kr> | 2015-05-19 21:25:39 +0900 |
commit | 0722fcbeb1181590972bfec1d303c32e628b6fc1 (patch) | |
tree | 1b6d551395920be1178f4432ae92ab167695b912 | |
parent | 667744182dbebc458c6065fc9b6c80a3c41ac761 (diff) | |
download | elementary-0722fcbeb1181590972bfec1d303c32e628b6fc1.tar.gz |
hoversel: Added item_focus_set/item_focus_get.
Summary: @feature
Reviewers: seoz, Hermet, raster
Subscribers: seoz, sachin.dev
Differential Revision: https://phab.enlightenment.org/D2436
Conflicts:
src/lib/elm_hoversel_item.eo
-rw-r--r-- | src/lib/elc_hoversel.c | 15 | ||||
-rw-r--r-- | src/lib/elc_hoversel.h | 2 | ||||
-rw-r--r-- | src/lib/elm_hoversel_item.eo | 2 |
3 files changed, 19 insertions, 0 deletions
diff --git a/src/lib/elc_hoversel.c b/src/lib/elc_hoversel.c index f69fccbba..869580497 100644 --- a/src/lib/elc_hoversel.c +++ b/src/lib/elc_hoversel.c @@ -268,6 +268,21 @@ _elm_hoversel_item_elm_widget_item_style_get(Eo *eo_it EINA_UNUSED, } EOLIAN static void +_elm_hoversel_item_elm_widget_item_focus_set(Eo *eo_it EINA_UNUSED, + Elm_Hoversel_Item_Data *it, + Eina_Bool focused) +{ + elm_widget_focus_set(VIEW(it), focused); +} + +EOLIAN static Eina_Bool +_elm_hoversel_item_elm_widget_item_focus_get(Eo *eo_it EINA_UNUSED, + Elm_Hoversel_Item_Data *it) +{ + return elm_widget_focus_get(VIEW(it)); +} + +EOLIAN static void _elm_hoversel_item_eo_base_destructor(Eo *eo_item, Elm_Hoversel_Item_Data *item) { ELM_HOVERSEL_DATA_GET_OR_RETURN(WIDGET(item), sd); diff --git a/src/lib/elc_hoversel.h b/src/lib/elc_hoversel.h index ef52aca45..8296c16ae 100644 --- a/src/lib/elc_hoversel.h +++ b/src/lib/elc_hoversel.h @@ -50,6 +50,8 @@ * @li elm_object_item_signal_emit - this works only when the item is created. * @li elm_object_item_style_set - this works only when the item is created. * @li elm_object_item_style_get - this works only when the item is created. + * @li elm_object_item_focus_set - this works only when the item is created. + * @li elm_object_item_focus_get - this works only when the item is created. * * See @ref tutorial_hoversel for an example. * @{ diff --git a/src/lib/elm_hoversel_item.eo b/src/lib/elm_hoversel_item.eo index 34e7013d0..237a891da 100644 --- a/src/lib/elm_hoversel_item.eo +++ b/src/lib/elm_hoversel_item.eo @@ -38,5 +38,7 @@ class Elm.Hoversel_Item(Elm.Widget_Item) Elm.Widget_Item.part_text.get; Elm.Widget_Item.style.get; Elm.Widget_Item.style.set; + Elm.Widget_Item.focus.set; + Elm.Widget_Item.focus.get; } } |