diff options
author | Mike Blumenkrantz <zmike@samsung.com> | 2018-08-17 18:10:50 +0100 |
---|---|---|
committer | Alastair Poole <netstar@gmail.com> | 2018-08-17 18:10:50 +0100 |
commit | a96933f964b1757b9d9f8a4cce14d883f35a6665 (patch) | |
tree | 0dfc519a8a562bb6fabdd5329e0fc4d94382e28c | |
parent | 6fe7e1155db768dcafa9f24af8f6b98230974813 (diff) |
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 commit b4112b9735ce75bce95974a257aa1880fa52a6bf.
This reverts commit be770d37fb05b8486907796dd16f4635bceb4ce1.
Subscribers: cedric, #reviewers, #committers
Tags: #efl_widgets
Differential Revision: https://phab.enlightenment.org/D6863
-rw-r--r-- | src/lib/efl/interfaces/efl_ui_format.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/efl/interfaces/efl_ui_format.c b/src/lib/efl/interfaces/efl_ui_format.c index 1064b078e3..c7b8c59aa9 100644 --- a/src/lib/efl/interfaces/efl_ui_format.c +++ b/src/lib/efl/interfaces/efl_ui_format.c | |||
@@ -38,7 +38,6 @@ _format_string_check(const char *fmt) | |||
38 | if (itr[1] == '%') | 38 | if (itr[1] == '%') |
39 | { | 39 | { |
40 | itr++; | 40 | itr++; |
41 | ret_type = FORMAT_TYPE_STRING; | ||
42 | continue; | 41 | continue; |
43 | } | 42 | } |
44 | 43 | ||
@@ -131,7 +130,7 @@ _default_format_cb(void *data, Eina_Strbuf *str, const Eina_Value value) | |||
131 | } | 130 | } |
132 | else if (sd->format_type == FORMAT_TYPE_STATIC) | 131 | else if (sd->format_type == FORMAT_TYPE_STATIC) |
133 | { | 132 | { |
134 | eina_strbuf_append(str, sd->template); | 133 | eina_strbuf_append_printf(str, sd->template); |
135 | } | 134 | } |
136 | else | 135 | else |
137 | { | 136 | { |