summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJee-Yong Um <jc9.um@samsung.com>2015-09-16 10:44:45 +0900
committerChunEon Park <hermet@hermet.pe.kr>2015-09-16 10:44:45 +0900
commit22aec5f944478e441d94816fc4088575040e9165 (patch)
tree4775d1ca892cfc289825993afd64d2fdc6811981
parent260e9ac4eeb27c3820ffb982ea4dedff67f18cad (diff)
elm_hoversel: add support elm_object_item_part_text_set()
Summary: There was override for elm_object_item_part_text_get() only. This patch implements elm_object_item_part_text_set(). Reviewers: Hermet, cedric Subscribers: Hermet Differential Revision: https://phab.enlightenment.org/D3054
-rw-r--r--src/lib/elc_hoversel.c13
-rw-r--r--src/lib/elm_hoversel_item.eo1
2 files changed, 14 insertions, 0 deletions
diff --git a/src/lib/elc_hoversel.c b/src/lib/elc_hoversel.c
index b8289317c..82f595785 100644
--- a/src/lib/elc_hoversel.c
+++ b/src/lib/elc_hoversel.c
@@ -310,6 +310,19 @@ _size_hints_changed_cb(void *data,
310 elm_layout_sizing_eval(data); 310 elm_layout_sizing_eval(data);
311} 311}
312 312
313static void
314_elm_hoversel_item_elm_widget_item_part_text_set(Eo *eo_it EINA_UNUSED,
315 Elm_Hoversel_Item_Data *it,
316 const char *part,
317 const char *label)
318{
319 if (part && strcmp(part, "default")) return;
320 eina_stringshare_replace(&it->label, label);
321
322 if (VIEW(it))
323 elm_object_text_set(VIEW(it), label);
324}
325
313static const char * 326static const char *
314_elm_hoversel_item_elm_widget_item_part_text_get(Eo *eo_it EINA_UNUSED, 327_elm_hoversel_item_elm_widget_item_part_text_get(Eo *eo_it EINA_UNUSED,
315 Elm_Hoversel_Item_Data *it, 328 Elm_Hoversel_Item_Data *it,
diff --git a/src/lib/elm_hoversel_item.eo b/src/lib/elm_hoversel_item.eo
index 748415090..39d076578 100644
--- a/src/lib/elm_hoversel_item.eo
+++ b/src/lib/elm_hoversel_item.eo
@@ -21,6 +21,7 @@ class Elm.Hoversel_Item(Elm.Widget_Item)
21 Eo.Base.constructor; 21 Eo.Base.constructor;
22 Eo.Base.destructor; 22 Eo.Base.destructor;
23 Elm.Widget_Item.signal_emit; 23 Elm.Widget_Item.signal_emit;
24 Elm.Widget_Item.part_text.set;
24 Elm.Widget_Item.part_text.get; 25 Elm.Widget_Item.part_text.get;
25 Elm.Widget_Item.style.get; 26 Elm.Widget_Item.style.get;
26 Elm.Widget_Item.style.set; 27 Elm.Widget_Item.style.set;