summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorWoochan Lee <wc0917.lee@samsung.com>2018-05-20 03:58:41 +0900
committerJaehyun Cho <jae_hyun.cho@samsung.com>2018-05-20 03:58:41 +0900
commit428d74ebc1f6ea5dab5c46f3c885c8aa8fbe93e0 (patch)
treef5459a851e7aefbcddc8c9c25195d08e5767340d /src/lib
parent976b9d877e762aee6e0fbd1b37766591644a2f2f (diff)
efl_ui_tags: Fixed bug when setting format string.
Summary: efl_ui_format_string_set was not working well. Changed default format text. ("++++ %d" text for test only.) @fix Reviewers: Jaehyun_Cho, cedric, woohyun Reviewed By: Jaehyun_Cho Subscribers: zmike, cedric Tags: #efl Differential Revision: https://phab.enlightenment.org/D6044
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/elementary/efl_ui_tags.c6
-rw-r--r--src/lib/elementary/elm_config.c1
2 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/elementary/efl_ui_tags.c b/src/lib/elementary/efl_ui_tags.c
index 25b5b8f46e..2e237c3811 100644
--- a/src/lib/elementary/efl_ui_tags.c
+++ b/src/lib/elementary/efl_ui_tags.c
@@ -102,7 +102,7 @@ _shrink_mode_set(Eo *obj,
102 } 102 }
103 else 103 else
104 { 104 {
105 snprintf(buf, sizeof(buf), "+++++ %d", count); 105 snprintf(buf, sizeof(buf), "+ %d", count);
106 edje_object_part_text_escaped_set(sd->end, "efl.text", buf); 106 edje_object_part_text_escaped_set(sd->end, "efl.text", buf);
107 } 107 }
108 108
@@ -119,14 +119,14 @@ _shrink_mode_set(Eo *obj,
119 if (sd->format_cb) 119 if (sd->format_cb)
120 { 120 {
121 eina_strbuf_reset(sd->format_strbuf); 121 eina_strbuf_reset(sd->format_strbuf);
122
123 eina_value_set(&val, count); 122 eina_value_set(&val, count);
123 sd->format_cb(sd->format_cb_data, sd->format_strbuf, val);
124 edje_object_part_text_escaped_set(sd->end, "efl.text", 124 edje_object_part_text_escaped_set(sd->end, "efl.text",
125 eina_strbuf_string_get(sd->format_strbuf)); 125 eina_strbuf_string_get(sd->format_strbuf));
126 } 126 }
127 else 127 else
128 { 128 {
129 snprintf(buf, sizeof(buf), "+++++ %d", count); 129 snprintf(buf, sizeof(buf), "+ %d", count);
130 edje_object_part_text_escaped_set(sd->end, "efl.text", buf); 130 edje_object_part_text_escaped_set(sd->end, "efl.text", buf);
131 } 131 }
132 132
diff --git a/src/lib/elementary/elm_config.c b/src/lib/elementary/elm_config.c
index aa76258e04..27afd8a652 100644
--- a/src/lib/elementary/elm_config.c
+++ b/src/lib/elementary/elm_config.c
@@ -176,6 +176,7 @@ static const Elm_Color_Class _elm_color_classes[] = {
176 {"datetime_text", "Datetime Text"}, 176 {"datetime_text", "Datetime Text"},
177 {"multibuttonentry_label", "Multibuttonentry Text"}, 177 {"multibuttonentry_label", "Multibuttonentry Text"},
178 {"tags_label", "Tags Text"}, 178 {"tags_label", "Tags Text"},
179 {"tags_number", "Tags Number Text"},
179 {"spinner", "Spinner Text"}, 180 {"spinner", "Spinner Text"},
180 {"spinner_disabled", "Spinner Disabled Text"}, 181 {"spinner_disabled", "Spinner Disabled Text"},
181 {NULL, NULL} 182 {NULL, NULL}