Ui layout: fix latest attempt to fix markup retreival
Commitsc07a40c745
and429e19563d
tried to fix markup retrieval by creating a different code path for the setter and getter. However, legacy code paths needs to be taken into consideration. This commit fixes legacy widgets (like guide text that did not show any text in the entry at the top of 'elementary_test'). ref T6642
This commit is contained in:
parent
26833b8d28
commit
a44ae48df8
|
@ -1214,6 +1214,10 @@ _efl_ui_layout_text_get(Eo *obj, Efl_Ui_Layout_Data *sd EINA_UNUSED, const char
|
|||
{
|
||||
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, NULL);
|
||||
|
||||
if (elm_widget_is_legacy(obj))
|
||||
{
|
||||
return edje_object_part_text_get(wd->resize_obj, part);
|
||||
}
|
||||
return efl_text_get(efl_part(wd->resize_obj, part));
|
||||
}
|
||||
|
||||
|
@ -2480,7 +2484,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_markup_set(efl_part(obj, part), text);
|
||||
efl_text_set(efl_part(obj, part), text);
|
||||
return EINA_TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue