edje/textblock: Don't add text_class style tag to the final style string
Evas_TextBlock_Style has no idea about the text_class tag its a garbage value to it. So keep the text_class tag in the edje level and update the text style property in the final style string when necessary. Because text_class id tends to be unique by removing from the final style string enable it to be shared (string shared string). Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9544
This commit is contained in:
parent
c4354dd38e
commit
384765b088
|
@ -100,6 +100,11 @@ _edje_format_reparse(Edje_File *edf, const char *str, Edje_Style_Tag **tag_ret)
|
||||||
{
|
{
|
||||||
if (tag_ret)
|
if (tag_ret)
|
||||||
(*tag_ret)->text_class = eina_stringshare_add(val);
|
(*tag_ret)->text_class = eina_stringshare_add(val);
|
||||||
|
|
||||||
|
// no need to add text_class tag to style
|
||||||
|
// as evas_textblock_style has no idea about
|
||||||
|
// text_class tag.
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
else if (!strcmp(key, "font_size"))
|
else if (!strcmp(key, "font_size"))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue