ui/motif/window.c

changeset 29
3fc287f06305
parent 0
2483f517c562
--- a/ui/motif/window.c	Sun Feb 11 15:59:56 2024 +0100
+++ b/ui/motif/window.c	Mon Feb 12 17:32:02 2024 +0100
@@ -36,7 +36,7 @@
 #include "../ui/window.h"
 #include "../common/context.h"
 
-#include <cx/basic_mempool.h>
+#include <cx/mempool.h>
 
 static int nwindows = 0;
 
@@ -67,7 +67,7 @@
     CxMempool *mp = cxBasicMempoolCreate(256);
     const CxAllocator *a = mp->allocator;
     UiObject *obj = cxCalloc(a, 1, sizeof(UiObject));
-    obj->ctx = uic_context(obj, a);
+    obj->ctx = uic_context(obj, mp);
     obj->window = window_data;
     
     Arg args[16];

mercurial