forked from enlightenment/efl
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
This commit is contained in:
parent
644cfdf435
commit
540c001931
|
@ -310,6 +310,19 @@ _size_hints_changed_cb(void *data,
|
|||
elm_layout_sizing_eval(data);
|
||||
}
|
||||
|
||||
static void
|
||||
_elm_hoversel_item_elm_widget_item_part_text_set(Eo *eo_it EINA_UNUSED,
|
||||
Elm_Hoversel_Item_Data *it,
|
||||
const char *part,
|
||||
const char *label)
|
||||
{
|
||||
if (part && strcmp(part, "default")) return;
|
||||
eina_stringshare_replace(&it->label, label);
|
||||
|
||||
if (VIEW(it))
|
||||
elm_object_text_set(VIEW(it), label);
|
||||
}
|
||||
|
||||
static const char *
|
||||
_elm_hoversel_item_elm_widget_item_part_text_get(Eo *eo_it EINA_UNUSED,
|
||||
Elm_Hoversel_Item_Data *it,
|
||||
|
|
|
@ -21,6 +21,7 @@ class Elm.Hoversel_Item(Elm.Widget_Item)
|
|||
Eo.Base.constructor;
|
||||
Eo.Base.destructor;
|
||||
Elm.Widget_Item.signal_emit;
|
||||
Elm.Widget_Item.part_text.set;
|
||||
Elm.Widget_Item.part_text.get;
|
||||
Elm.Widget_Item.style.get;
|
||||
Elm.Widget_Item.style.set;
|
||||
|
|
Loading…
Reference in New Issue