{
int year, mon, day;
elm_datepicker_date_get(obj, &year, &mon, &day);
-
+
if (p->year_exists) year = p->year;
if (p->mon_exists) mon = p->mon;
if (p->day_exists) day = p->day;
return EINA_TRUE;
}
}
-
+
ERR("unknown parameter '%s' of type '%s'",
param->name, edje_external_param_type_str(param->type));
param->s = elm_datepicker_date_format_get(obj);
return EINA_TRUE;
}
- }
+ }
else if (!strcmp(param->name, "years"))
{
if (param->type == EDJE_EXTERNAL_PARAM_TYPE_INT)
elm_datepicker_date_get(obj, NULL, NULL, &(param->i));
return EINA_TRUE;
}
- }
+ }
ERR("unknown parameter '%s' of type '%s'",
param->name, edje_external_param_type_str(param->type));
mem = calloc(1, sizeof(Elm_Params_Datepicker));
if (!mem)
return NULL;
-
+
EINA_LIST_FOREACH(params, l, param)
{
if (!strcmp(param->name, "format"))
{
mem->day = param->i;
mem->day_exists = EINA_TRUE;
- }
+ }
}
return mem;
external_datepicker_params_free(void *params)
{
Elm_Params_Datepicker *mem = params;
-
+
if (mem->format)
- eina_stringshare_del(mem->format);
+ eina_stringshare_del(mem->format);
free(mem);
}