diff -r e79a60b3a7cb -r 7c3ff86ee9d4 ui/motif/tree.c --- a/ui/motif/tree.c Sun Apr 16 10:20:21 2023 +0200 +++ b/ui/motif/tree.c Tue May 23 11:11:28 2023 +0200 @@ -36,7 +36,9 @@ #include "container.h" #include "../common/object.h" #include "../common/context.h" -#include +#include +#include +#include UIWIDGET ui_table_var(UiObject *obj, UiVar *var, UiModel *model, UiListCallbacks cb) { // TODO: check if modelinfo is complete @@ -119,7 +121,7 @@ data = list->next(list); } - UiTableView *tableview = ucx_mempool_malloc(obj->ctx->mempool, sizeof(UiTableView)); + UiTableView *tableview = cxMalloc(obj->ctx->allocator, sizeof(UiTableView)); tableview->widget = container; tableview->var = var; tableview->model = model; @@ -246,9 +248,11 @@ case UI_INTEGER: { *free = TRUE; int *val = data; - sstr_t str = ucx_asprintf(ucx_default_allocator(), "%d", *val); + cxmutstr str = cx_asprintf("%d", *val); return str.ptr; } + case UI_ICON: break; // TODO + case UI_ICON_TEXT: break; // TODO } *free = FALSE; return NULL;