forked from enlightenment/efl
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:
parent
0061a4bb34
commit
3462390b5c
|
@ -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 (!text) return EINA_TRUE;
|
||||||
|
|
||||||
if (is_markup)
|
if (wd->legacy)
|
||||||
{
|
{
|
||||||
if (!edje_object_part_text_escaped_set
|
if (!edje_object_part_text_escaped_set
|
||||||
(wd->resize_obj, part, text))
|
(wd->resize_obj, part, text))
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
}
|
}
|
||||||
|
else if (is_markup)
|
||||||
|
{
|
||||||
|
efl_text_markup_set(efl_part(wd->resize_obj, part), text);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (!edje_object_part_text_unescaped_set
|
efl_text_set(efl_part(wd->resize_obj, part), text);
|
||||||
(wd->resize_obj, part, text))
|
|
||||||
return EINA_FALSE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!sub_d)
|
if (!sub_d)
|
||||||
|
|
Loading…
Reference in New Issue