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:
subhransu mohanty 2019-08-12 01:24:39 +00:00 committed by Cedric BAIL
parent c4354dd38e
commit 384765b088
1 changed files with 5 additions and 0 deletions

View File

@ -100,6 +100,11 @@ _edje_format_reparse(Edje_File *edf, const char *str, Edje_Style_Tag **tag_ret)
{
if (tag_ret)
(*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"))
{