diff -r 809581724cc7 -r 0358f1d9c506 ui/gtk/window.c --- a/ui/gtk/window.c Sat Apr 15 21:06:45 2023 +0200 +++ b/ui/gtk/window.c Mon May 22 16:17:26 2023 +0200 @@ -34,6 +34,8 @@ #include "../ui/properties.h" #include "../common/context.h" +#include + #include "menu.h" #include "toolbar.h" #include "container.h" @@ -66,8 +68,8 @@ } static UiObject* create_window(char *title, void *window_data, UiBool simple) { - UcxMempool *mp = ucx_mempool_new(256); - UiObject *obj = ucx_mempool_calloc(mp, 1, sizeof(UiObject)); + CxMempool *mp = cxBasicMempoolCreate(256); + UiObject *obj = cxCalloc(mp->allocator, 1, sizeof(UiObject)); #ifndef UI_GTK2 obj->widget = gtk_application_window_new(ui_get_application()); @@ -76,7 +78,7 @@ #endif - obj->ctx = uic_context(obj, mp); + obj->ctx = uic_context(obj, mp->allocator); obj->window = window_data; if(title != NULL) {