--- a/ui/common/context.h Sun Aug 24 15:24:16 2025 +0200 +++ b/ui/common/context.h Sat Oct 04 14:52:59 2025 +0200 @@ -67,8 +67,7 @@ void *document; CxList *documents; - CxMap *vars; // manually created context vars - CxMap *vars_unbound; // unbound vars created by widgets + CxMap *vars; CxList *groups; // int list CxList *group_widgets; // UiGroupWidget list @@ -92,7 +91,6 @@ void *close_data; }; -// UiVar replacement, rename it to UiVar when finished struct UiVar { void *value; void *original_value; @@ -133,10 +131,10 @@ UiVar* uic_create_value_var(UiContext *ctx, void *value); void* uic_create_value(UiContext *ctx, UiVarType type); -UiVar* uic_widget_var(UiContext* toplevel, UiContext* current, void* value, const char* varname, UiVarType type); +UiVar* uic_widget_var(UiContext *toplevel, UiContext *current, void *value, const char *varname, UiVarType type); void uic_copy_binding(UiVar *from, UiVar *to, UiBool copytodoc); -void uic_save_var2(UiVar *var); +void uic_save_var(UiVar *var); void uic_unbind_var(UiVar *var); void uic_reg_var(UiContext *ctx, const char *name, UiVarType type, void *value);