aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWoochan Lee <wc0917.lee@samsung.com>2018-03-20 21:09:30 +0900
committerJaehyun Cho <jae_hyun.cho@samsung.com>2018-03-20 21:09:30 +0900
commit008d9901814f33a2c1f4d1e5058882494f0f9d48 (patch)
tree6bafc0e9bc6ca2292964089f0d9cbb34a1d44116
parentefl.task - move to returning future insead of bool + exit event (diff)
downloadefl-008d9901814f33a2c1f4d1e5058882494f0f9d48.tar.gz
efl_ui_clock: Fix wrong target to compare with.
Summary: It breaks API action. It missed when implement efl_ui_clock i think. @fix Test Plan: elementary_test -> efl_ui_clock sample. Reviewers: cedric, woohyun, Jaehyun_Cho Reviewed By: Jaehyun_Cho Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D5826
-rw-r--r--src/lib/elementary/efl_ui_clock.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/elementary/efl_ui_clock.c b/src/lib/elementary/efl_ui_clock.c
index dec9b2dfaa..694c0a2492 100644
--- a/src/lib/elementary/efl_ui_clock.c
+++ b/src/lib/elementary/efl_ui_clock.c
@@ -698,7 +698,7 @@ _field_format_get(Evas_Object *obj,
{
Clock_Field *field;
- if (field_type > EFL_UI_CLOCK_TYPE_DAY) return NULL;
+ if (field_type > EFL_UI_CLOCK_TYPE_AMPM) return NULL;
EFL_UI_CLOCK_DATA_GET(obj, sd);
@@ -963,7 +963,7 @@ _efl_ui_clock_field_visible_get(Eo *obj EINA_UNUSED, Efl_Ui_Clock_Data *sd, Efl_
{
Clock_Field *field;
- if (fieldtype > EFL_UI_CLOCK_TYPE_DAY) return EINA_FALSE;
+ if (fieldtype > EFL_UI_CLOCK_TYPE_AMPM) return EINA_FALSE;
field = sd->field_list + fieldtype;
@@ -976,7 +976,7 @@ _efl_ui_clock_field_visible_set(Eo *obj, Efl_Ui_Clock_Data *sd, Efl_Ui_Clock_Typ
char buf[BUFFER_SIZE];
Clock_Field *field;
- if (fieldtype > EFL_UI_CLOCK_TYPE_DAY) return;
+ if (fieldtype > EFL_UI_CLOCK_TYPE_AMPM) return;
field = sd->field_list + fieldtype;
visible = !!visible;
@@ -1035,7 +1035,7 @@ _efl_ui_clock_field_limit_get(Eo *obj EINA_UNUSED, Efl_Ui_Clock_Data *sd, Efl_Ui
{
Clock_Field *field;
- if (fieldtype >= EFL_UI_CLOCK_TYPE_DAY) return;
+ if (fieldtype >= EFL_UI_CLOCK_TYPE_AMPM) return;
field = sd->field_list + fieldtype;
if (min) *min = field->min;
@@ -1048,7 +1048,7 @@ _efl_ui_clock_field_limit_set(Eo *obj, Efl_Ui_Clock_Data *sd, Efl_Ui_Clock_Type
Clock_Field *field;
struct tm old_time;
- if (fieldtype >= EFL_UI_CLOCK_TYPE_DAY) return;
+ if (fieldtype >= EFL_UI_CLOCK_TYPE_AMPM) return;
if (min > max) return;