const char *units;
const char *indicator;
- const char *(*indicator_format_func)(double val);
- void (*indicator_format_free)(const char *str);
+ char *(*indicator_format_func)(double val);
+ void (*indicator_format_free)(char *str);
- const char *(*units_format_func)(double val);
- void (*units_format_free)(const char *str);
+ char *(*units_format_func)(double val);
+ void (*units_format_free)(char *str);
double val, val_min, val_max, val2;
Evas_Coord size;
if (!wd) return;
if (wd->units_format_func)
{
- const char *buf;
+ char *buf;
buf = wd->units_format_func(wd->val);
edje_object_part_text_set(wd->slider, "elm.units", buf);
if (wd->units_format_free) wd->units_format_free(buf);
if (!wd) return;
if (wd->indicator_format_func)
{
- const char *buf;
+ char *buf;
buf = wd->indicator_format_func(wd->val);
edje_object_part_text_set(wd->slider, "elm.dragable.slider:elm.indicator", buf);
if (wd->indicator_format_free) wd->indicator_format_free(buf);
static void
_min_max_set(Evas_Object *obj)
{
- const char *buf_min = NULL;
- const char *buf_max = NULL;
+ char *buf_min = NULL;
+ char *buf_max = NULL;
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
}
EAPI void
-elm_slider_indicator_format_function_set(Evas_Object *obj, const char *(*func)(double val), void (*free_func)(const char *str))
+elm_slider_indicator_format_function_set(Evas_Object *obj, char *(*func)(double val), void (*free_func)(char *str))
{
ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
}
EAPI void
-elm_slider_units_format_function_set(Evas_Object *obj, const char *(*func)(double val), void (*free_func)(const char *str))
+elm_slider_units_format_function_set(Evas_Object *obj, char *(*func)(double val), void (*free_func)(char *str))
{
ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
*
* @ingroup Slider
*/
-EAPI void elm_slider_indicator_format_function_set(Evas_Object *obj, const char *(*func)(double val), void (*free_func)(const char *str));
+EAPI void elm_slider_indicator_format_function_set(Evas_Object *obj, char *(*func)(double val), void (*free_func)(char *str));
/**
* Set the format function pointer for the units label
*
* @ingroup Slider
*/
-EAPI void elm_slider_units_format_function_set(Evas_Object *obj, const char *(*func)(double val), void (*free_func)(const char *str));
+EAPI void elm_slider_units_format_function_set(Evas_Object *obj, char *(*func)(double val), void (*free_func)(char *str));
/**
* Set the orientation of a given slider widget.