elm: make elm_layout_text_set use efl_text_markup_set

The elm_layout_text_get is using efl_text_markup_get by following commit.

    commit c07a40c745
    elm: make elm_object_text_get return markup info as well.

    This commit solves following issue

    https://phab.enlightenment.org/T6642

    If I set object text as below
    elm_object_text_set(btn, "Some<br>text");
    then elm_object_text_get(btn) returns "Some text" not "Some<br>text".

So using efl_text_markup_set makes sense.
This commit is contained in:
Shinwoo Kim 2018-01-29 12:25:18 +09:00
parent 18e392b502
commit 429e19563d
1 changed files with 1 additions and 1 deletions

View File

@ -2480,7 +2480,7 @@ elm_layout_text_set(Eo *obj, const char *part, const char *text)
else if (!_elm_layout_part_aliasing_eval(obj, &part, EINA_TRUE))
return EINA_FALSE;
efl_text_set(efl_part(obj, part), text);
efl_text_markup_set(efl_part(obj, part), text);
return EINA_TRUE;
}