summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_slider.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/elm_slider.c')
-rw-r--r--src/lib/elementary/elm_slider.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/elementary/elm_slider.c b/src/lib/elementary/elm_slider.c
index 8239e475ee..a603894be7 100644
--- a/src/lib/elementary/elm_slider.c
+++ b/src/lib/elementary/elm_slider.c
@@ -1124,7 +1124,7 @@ _indi_default_format_free_cb(void *data)
1124} 1124}
1125 1125
1126EOLIAN static void 1126EOLIAN static void
1127_elm_slider_part_indicator_efl_ui_format_format_string_set(Eo *obj, void *_pd EINA_UNUSED, const char *template) 1127_elm_slider_part_indicator_efl_ui_format_format_string_set(Eo *obj, void *_pd EINA_UNUSED, const char *template, Efl_Ui_Format_String_Type type EINA_UNUSED)
1128{ 1128{
1129 Elm_Part_Data *pd = efl_data_scope_get(obj, EFL_UI_WIDGET_PART_CLASS); 1129 Elm_Part_Data *pd = efl_data_scope_get(obj, EFL_UI_WIDGET_PART_CLASS);
1130 Elm_Slider_Data *sd = efl_data_scope_get(pd->obj, ELM_SLIDER_CLASS); 1130 Elm_Slider_Data *sd = efl_data_scope_get(pd->obj, ELM_SLIDER_CLASS);
@@ -1135,13 +1135,13 @@ _elm_slider_part_indicator_efl_ui_format_format_string_set(Eo *obj, void *_pd EI
1135 efl_ui_format_func_set(efl_part(pd->obj, "indicator"), pd->obj, _indi_default_format_cb, _indi_default_format_free_cb); 1135 efl_ui_format_func_set(efl_part(pd->obj, "indicator"), pd->obj, _indi_default_format_cb, _indi_default_format_free_cb);
1136} 1136}
1137 1137
1138EOLIAN static const char * 1138EOLIAN static void
1139_elm_slider_part_indicator_efl_ui_format_format_string_get(const Eo *obj, void *_pd EINA_UNUSED) 1139_elm_slider_part_indicator_efl_ui_format_format_string_get(const Eo *obj, void *_pd EINA_UNUSED, const char **template, Efl_Ui_Format_String_Type *type EINA_UNUSED)
1140{ 1140{
1141 Elm_Part_Data *pd = efl_data_scope_get(obj, EFL_UI_WIDGET_PART_CLASS); 1141 Elm_Part_Data *pd = efl_data_scope_get(obj, EFL_UI_WIDGET_PART_CLASS);
1142 Elm_Slider_Data *sd = efl_data_scope_get(pd->obj, ELM_SLIDER_CLASS); 1142 Elm_Slider_Data *sd = efl_data_scope_get(pd->obj, ELM_SLIDER_CLASS);
1143 1143
1144 return sd->indi_template; 1144 if (template) *template = sd->indi_template;
1145} 1145}
1146 1146
1147EOLIAN static void 1147EOLIAN static void
@@ -1207,7 +1207,7 @@ elm_slider_unit_format_set(Evas_Object *obj, const char *units)
1207EAPI const char * 1207EAPI const char *
1208elm_slider_unit_format_get(const Evas_Object *obj) 1208elm_slider_unit_format_get(const Evas_Object *obj)
1209{ 1209{
1210 const char* fmt; 1210 const char* fmt = NULL;
1211 efl_ui_format_string_get(obj, &fmt, NULL); 1211 efl_ui_format_string_get(obj, &fmt, NULL);
1212 return fmt; 1212 return fmt;
1213} 1213}
@@ -1386,7 +1386,7 @@ elm_slider_indicator_format_set(Evas_Object *obj, const char *indicator)
1386EAPI const char * 1386EAPI const char *
1387elm_slider_indicator_format_get(const Evas *obj) 1387elm_slider_indicator_format_get(const Evas *obj)
1388{ 1388{
1389 const char *fmt; 1389 const char *fmt = NULL;
1390 efl_ui_format_string_get(efl_part(obj, "indicator"), &fmt, NULL); 1390 efl_ui_format_string_get(efl_part(obj, "indicator"), &fmt, NULL);
1391 return fmt; 1391 return fmt;
1392} 1392}