diff options
author | Woochanlee <wc0917.lee@samsung.com> | 2018-11-20 09:59:18 +0100 |
---|---|---|
committer | Xavi Artigas <xavierartigas@yahoo.es> | 2018-11-20 10:23:28 +0100 |
commit | a1478261b5df689b04c2223cdaf68dc91c4a6442 (patch) | |
tree | aed1600e7e5456efc32a97e3608d6dfc5dc1c644 /src/lib/efl/interfaces/efl_ui_format.c | |
parent | 4b5304d7f2b400064c0896f7510f31850912e5af (diff) |
efl_ui_format: remove supporting default TM format in interface.
Summary:
efl_ui_format printed ERR log in calendar use case.
calendar only accept format as "B,b,h,m,y,Y"
But it doesn't cover that and not supporting TM type.
If there is other widget which one using format interface, It also has own accpeted format.
So i think it should impelment on widget side.
Test Plan: elementary_test -> efl_ui_calendar.
Reviewers: Hermet, singh.amitesh, Jaehyun, zmike, segfaultxavi
Reviewed By: segfaultxavi
Subscribers: segfaultxavi, cedric, #reviewers, #committers, zmike
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D6871
Diffstat (limited to '')
-rw-r--r-- | src/lib/efl/interfaces/efl_ui_format.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/lib/efl/interfaces/efl_ui_format.c b/src/lib/efl/interfaces/efl_ui_format.c index 4f3a867f27..e722d22654 100644 --- a/src/lib/efl/interfaces/efl_ui_format.c +++ b/src/lib/efl/interfaces/efl_ui_format.c | |||
@@ -92,18 +92,9 @@ _format_string_check(const char *fmt) | |||
92 | static void | 92 | static void |
93 | _default_format_cb(void *data, Eina_Strbuf *str, const Eina_Value value) | 93 | _default_format_cb(void *data, Eina_Strbuf *str, const Eina_Value value) |
94 | { | 94 | { |
95 | const Eina_Value_Type *type = eina_value_type_get(&value); | ||
96 | Efl_Ui_Format_Data *sd = data; | 95 | Efl_Ui_Format_Data *sd = data; |
97 | Eina_Value copy; | 96 | Eina_Value copy; |
98 | 97 | ||
99 | if (type == EINA_VALUE_TYPE_TM) | ||
100 | { | ||
101 | struct tm v; | ||
102 | eina_value_get(&value, &v); | ||
103 | eina_strbuf_append_strftime(str, sd->template, &v); | ||
104 | return; | ||
105 | } | ||
106 | |||
107 | if (sd->format_type == FORMAT_TYPE_DOUBLE) | 98 | if (sd->format_type == FORMAT_TYPE_DOUBLE) |
108 | { | 99 | { |
109 | double v = 0.0; | 100 | double v = 0.0; |