# HG changeset patch # User Olaf Wintermann # Date 1757690121 -7200 # Node ID d5ff5520affe000c79153da68f9ffc87f56c1139 # Parent 2b977b33258274c8a57575892852b1b5ff0c2f9d rename ui_range_set_value/ui_range_get_value diff -r 2b977b332582 -r d5ff5520affe ui/common/types.c --- a/ui/common/types.c Thu Sep 11 20:12:42 2025 +0200 +++ b/ui/common/types.c Fri Sep 12 17:15:21 2025 +0200 @@ -451,7 +451,7 @@ } } -void ui_range_set_value(UiRange *r, double value) { +void ui_range_set(UiRange *r, double value) { if (r) { if (r->set) { r->set(r, value); @@ -482,7 +482,7 @@ } } -double ui_range_get_value(UiRange *r) { +double ui_range_get(UiRange *r) { if (r) { return r->get ? r->get(r) : r->value; } else { diff -r 2b977b332582 -r d5ff5520affe ui/ui/toolkit.h --- a/ui/ui/toolkit.h Thu Sep 11 20:12:42 2025 +0200 +++ b/ui/ui/toolkit.h Fri Sep 12 17:15:21 2025 +0200 @@ -611,10 +611,10 @@ UIEXPORT char* ui_string_get(UiString *s); UIEXPORT void ui_text_set(UiText *s, const char* value); UIEXPORT char* ui_text_get(UiText *s); -UIEXPORT void ui_range_set_value(UiRange *r, double value); +UIEXPORT void ui_range_set(UiRange *r, double value); UIEXPORT void ui_range_set_range(UiRange *r, double min, double max); UIEXPORT void ui_range_set_extent(UiRange *r, double extent); -UIEXPORT double ui_range_get_value(UiRange *r); +UIEXPORT double ui_range_get(UiRange *r); UIEXPORT double ui_range_get_min(UiRange *r); UIEXPORT double ui_range_get_max(UiRange *r); UIEXPORT double ui_range_get_extent(UiRange *r);