+static void
+_min_max_set(Evas_Object *obj)
+{
+ char *buf_min = NULL;
+ char *buf_max = NULL;
+
+ Widget_Data *wd = elm_widget_data_get(obj);
+ if (!wd) return;
+ if (wd->units_format_func)
+ {
+ buf_min = wd->units_format_func(wd->val_min);
+ buf_max = wd->units_format_func(wd->val_max);
+ }
+ else if (wd->units)
+ {
+ int length = strlen(wd->units);
+
+ buf_min = alloca(length + 128);
+ buf_max = alloca(length + 128);
+
+ snprintf((char*) buf_min, length + 128, wd->units, wd->val_min);
+ snprintf((char*) buf_max, length + 128, wd->units, wd->val_max);
+ }
+
+ edje_object_part_text_escaped_set(wd->slider, "elm.units.min", buf_min);
+ edje_object_part_text_escaped_set(wd->slider, "elm.units.max", buf_max);
+
+ if (wd->units_format_func && wd->units_format_free)
+ {
+ wd->units_format_free(buf_min);
+ wd->units_format_free(buf_max);
+ }
+}
+
+