ui/common/object.c

changeset 797
47008843b468
parent 659
d6baaa93f7be
child 801
e096c441e874
equal deleted inserted replaced
796:4d04cb879daa 797:47008843b468
134 134
135 UiObject* uic_object_new_toplevel(void) { 135 UiObject* uic_object_new_toplevel(void) {
136 CxMempool *mp = cxMempoolCreateSimple(256); 136 CxMempool *mp = cxMempoolCreateSimple(256);
137 UiObject *obj = cxCalloc(mp->allocator, 1, sizeof(UiObject)); 137 UiObject *obj = cxCalloc(mp->allocator, 1, sizeof(UiObject));
138 obj->ctx = uic_context(obj, mp); 138 obj->ctx = uic_context(obj, mp);
139 obj->ctx->parent = ui_global_context();
139 uic_object_created(obj); 140 uic_object_created(obj);
140 return obj; 141 return obj;
141 } 142 }
142 143
143 UiObject* uic_object_new(UiObject *toplevel, UIWIDGET widget) { 144 UiObject* uic_object_new(UiObject *toplevel, UIWIDGET widget) {

mercurial