efl_ui/format: revert some patches to fix some regressions
Summary: it seems that the original patch in this case introduced a regression where format strings ending with %% in progressbar would not be displayed correctly. a followup patch attempted to resolve this, but this second patch introduced another regression where some format strings would always display 0% fixing compiler warnings is always valued, but in the case where the patch to fix the warning creates regressions then we will live with the warnings instead This reverts commitb4112b9735
. This reverts commitbe770d37fb
. Subscribers: cedric, #reviewers, #committers Tags: #efl_widgets Differential Revision: https://phab.enlightenment.org/D6863
This commit is contained in:
parent
6fe7e1155d
commit
a96933f964
|
@ -38,7 +38,6 @@ _format_string_check(const char *fmt)
|
|||
if (itr[1] == '%')
|
||||
{
|
||||
itr++;
|
||||
ret_type = FORMAT_TYPE_STRING;
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -131,7 +130,7 @@ _default_format_cb(void *data, Eina_Strbuf *str, const Eina_Value value)
|
|||
}
|
||||
else if (sd->format_type == FORMAT_TYPE_STATIC)
|
||||
{
|
||||
eina_strbuf_append(str, sd->template);
|
||||
eina_strbuf_append_printf(str, sd->template);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue