summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmitesh Singh <amitesh.sh@samsung.com>2015-05-19 21:24:35 +0900
committerChunEon Park <hermet@hermet.pe.kr>2015-05-19 21:25:39 +0900
commit0722fcbeb1181590972bfec1d303c32e628b6fc1 (patch)
tree1b6d551395920be1178f4432ae92ab167695b912
parent667744182dbebc458c6065fc9b6c80a3c41ac761 (diff)
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.c15
-rw-r--r--src/lib/elc_hoversel.h2
-rw-r--r--src/lib/elm_hoversel_item.eo2
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,
268} 268}
269 269
270EOLIAN static void 270EOLIAN static void
271_elm_hoversel_item_elm_widget_item_focus_set(Eo *eo_it EINA_UNUSED,
272 Elm_Hoversel_Item_Data *it,
273 Eina_Bool focused)
274{
275 elm_widget_focus_set(VIEW(it), focused);
276}
277
278EOLIAN static Eina_Bool
279_elm_hoversel_item_elm_widget_item_focus_get(Eo *eo_it EINA_UNUSED,
280 Elm_Hoversel_Item_Data *it)
281{
282 return elm_widget_focus_get(VIEW(it));
283}
284
285EOLIAN static void
271_elm_hoversel_item_eo_base_destructor(Eo *eo_item, Elm_Hoversel_Item_Data *item) 286_elm_hoversel_item_eo_base_destructor(Eo *eo_item, Elm_Hoversel_Item_Data *item)
272{ 287{
273 ELM_HOVERSEL_DATA_GET_OR_RETURN(WIDGET(item), sd); 288 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 @@
50 * @li elm_object_item_signal_emit - this works only when the item is created. 50 * @li elm_object_item_signal_emit - this works only when the item is created.
51 * @li elm_object_item_style_set - this works only when the item is created. 51 * @li elm_object_item_style_set - this works only when the item is created.
52 * @li elm_object_item_style_get - this works only when the item is created. 52 * @li elm_object_item_style_get - this works only when the item is created.
53 * @li elm_object_item_focus_set - this works only when the item is created.
54 * @li elm_object_item_focus_get - this works only when the item is created.
53 * 55 *
54 * See @ref tutorial_hoversel for an example. 56 * See @ref tutorial_hoversel for an example.
55 * @{ 57 * @{
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)
38 Elm.Widget_Item.part_text.get; 38 Elm.Widget_Item.part_text.get;
39 Elm.Widget_Item.style.get; 39 Elm.Widget_Item.style.get;
40 Elm.Widget_Item.style.set; 40 Elm.Widget_Item.style.set;
41 Elm.Widget_Item.focus.set;
42 Elm.Widget_Item.focus.get;
41 } 43 }
42} 44}