Summary:
If user sets the limit value using elm_datetime_field_limit_set() API, the filed value will be recalculated.
Even though the value changed in case, value changed signal didn't send to user before.
@fix
Reviewers: seoz, woohyun, Hermet
Reviewed By: Hermet
Differential Revision: https://phab.enlightenment.org/D1980
_elm_datetime_field_limit_set(Eo *obj, Elm_Datetime_Data *sd, Elm_Datetime_Field_Type fieldtype, int min, int max)
{
Datetime_Field *field;
+ struct tm old_time;
if (fieldtype >= ELM_DATETIME_AMPM) return;
if (min > max) return;
+ old_time = sd->curr_time;
field = sd->field_list + fieldtype;
if (((min >= mapping[fieldtype].def_min) &&
(min <= mapping[fieldtype].def_max)) ||
field->max = max;
_apply_field_limits(obj);
+
+ if (!_date_cmp(&old_time, &sd->curr_time))
+ evas_object_smart_callback_call(obj, SIG_CHANGED, NULL);
}
EOLIAN static Eina_Bool