51 |
51 |
52 |
52 |
53 UiObject* uic_object_new(UiObject *toplevel, UIWIDGET widget) { |
53 UiObject* uic_object_new(UiObject *toplevel, UIWIDGET widget) { |
54 UiContext *ctx = toplevel->ctx; |
54 UiContext *ctx = toplevel->ctx; |
55 |
55 |
56 UiObject *newobj = ucx_mempool_calloc(ctx->mempool, 1, sizeof(UiObject)); |
56 UiObject *newobj = cxCalloc(ctx->allocator, 1, sizeof(UiObject)); |
57 newobj->ctx = ctx; |
57 newobj->ctx = ctx; |
58 newobj->widget = widget; |
58 newobj->widget = widget; |
59 |
59 |
60 return newobj; |
60 return newobj; |
61 } |
61 } |