Ui layout: handle Efl.Text legacy code better

This should cover the cases without need to duplicate a lot of code.
Follow-up to deca3c947f.
This commit is contained in:
Daniel Hirt 2017-10-01 18:40:50 +03:00
parent 0061a4bb34
commit 3462390b5c
1 changed files with 6 additions and 4 deletions

View File

@ -1255,17 +1255,19 @@ _efl_ui_layout_text_generic_set(Eo *obj, Efl_Ui_Layout_Data *sd, const char *par
if (!text) return EINA_TRUE;
if (is_markup)
if (wd->legacy)
{
if (!edje_object_part_text_escaped_set
(wd->resize_obj, part, text))
return EINA_FALSE;
}
else if (is_markup)
{
efl_text_markup_set(efl_part(wd->resize_obj, part), text);
}
else
{
if (!edje_object_part_text_unescaped_set
(wd->resize_obj, part, text))
return EINA_FALSE;
efl_text_set(efl_part(wd->resize_obj, part), text);
}
if (!sub_d)