summaryrefslogtreecommitdiff
path: root/src/lib/elementary/efl_ui_timepicker.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/efl_ui_timepicker.c')
-rw-r--r--src/lib/elementary/efl_ui_timepicker.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/elementary/efl_ui_timepicker.c b/src/lib/elementary/efl_ui_timepicker.c
index d66ed0e853..9dfcd89b14 100644
--- a/src/lib/elementary/efl_ui_timepicker.c
+++ b/src/lib/elementary/efl_ui_timepicker.c
@@ -90,14 +90,14 @@ _field_changed_cb(void *data, const Efl_Event *ev)
90 if (ev->object == pd->hour) 90 if (ev->object == pd->hour)
91 { 91 {
92 pd->cur_time[TIMEPICKER_HOUR] = efl_ui_range_value_get(pd->hour); 92 pd->cur_time[TIMEPICKER_HOUR] = efl_ui_range_value_get(pd->hour);
93 if (!pd->is_24hour && !strcmp(efl_text_get(pd->ampm), "PM")) 93 if (!pd->is_24hour && eina_streq(efl_text_get(pd->ampm), "PM"))
94 pd->cur_time[TIMEPICKER_HOUR] += 12; 94 pd->cur_time[TIMEPICKER_HOUR] += 12;
95 } 95 }
96 else if (ev->object == pd->min) 96 else if (ev->object == pd->min)
97 pd->cur_time[TIMEPICKER_MIN] = efl_ui_range_value_get(pd->min); 97 pd->cur_time[TIMEPICKER_MIN] = efl_ui_range_value_get(pd->min);
98 else 98 else
99 { 99 {
100 if (!strcmp(efl_text_get(pd->ampm), "PM")) 100 if (eina_streq(efl_text_get(pd->ampm), "PM"))
101 { 101 {
102 efl_text_set(pd->ampm, "AM"); 102 efl_text_set(pd->ampm, "AM");
103 pd->cur_time[TIMEPICKER_HOUR] -= 12; 103 pd->cur_time[TIMEPICKER_HOUR] -= 12;