Mon, 22 Dec 2025 09:19:24 +0100
add missing ui_get_list_var
| ui/common/context.c | file | annotate | diff | comparison | revisions | |
| ui/ui/toolkit.h | file | annotate | diff | comparison | revisions |
--- a/ui/common/context.c Sat Dec 20 23:37:01 2025 +0100 +++ b/ui/common/context.c Mon Dec 22 09:19:24 2025 +0100 @@ -805,6 +805,11 @@ return var ? var->value : NULL; } +UIEXPORT UiList* ui_get_list_var(UiContext *ctx, const char *name) { + UiVar *var = uic_get_var_t(ctx, name, UI_VAR_LIST); + return var ? var->value : NULL; +} + UiGeneric* ui_get_generic_var(UiContext *ctx, const char *name) { UiVar *var = uic_get_var_t(ctx, name, UI_VAR_GENERIC); return var ? var->value : NULL;
--- a/ui/ui/toolkit.h Sat Dec 20 23:37:01 2025 +0100 +++ b/ui/ui/toolkit.h Mon Dec 22 09:19:24 2025 +0100 @@ -642,6 +642,7 @@ UIEXPORT UiString* ui_get_string_var(UiContext *ctx, const char *name); UIEXPORT UiText* ui_get_text_var(UiContext *ctx, const char *name); UIEXPORT UiRange* ui_get_range_var(UiContext *ctx, const char *name); +UIEXPORT UiList* ui_get_list_var(UiContext *ctx, const char *name); UIEXPORT UiGeneric* ui_get_generic_var(UiContext *ctx, const char *name); UIEXPORT void ui_var_add_observer(UiContext *ctx, const char *varname, ui_callback f, void *data);