ui/motif/window.c

changeset 627
3f0c9fe60c68
parent 479
d9b58dd1c30b
child 924
6c6e97e06009
--- a/ui/motif/window.c	Mon Jun 16 21:21:00 2025 +0200
+++ b/ui/motif/window.c	Mon Jun 16 21:41:55 2025 +0200
@@ -70,8 +70,7 @@
 static UiObject* create_window(const char *title, void *window_data, Boolean simple) {
     CxMempool *mp = cxMempoolCreateSimple(256);
     const CxAllocator *a = mp->allocator;
-    UiObject *obj = cxCalloc(a, 1, sizeof(UiObject));
-    obj->ctx = uic_context(obj, mp);
+    UiObject *obj = uic_object_new_toplevel();
     obj->window = window_data;
     obj->destroy = ui_window_widget_destroy;
     

mercurial