ui/motif/window.c

changeset 627
3f0c9fe60c68
parent 479
d9b58dd1c30b
child 924
6c6e97e06009
equal deleted inserted replaced
626:724c7036a03e 627:3f0c9fe60c68
68 68
69 69
70 static UiObject* create_window(const char *title, void *window_data, Boolean simple) { 70 static UiObject* create_window(const char *title, void *window_data, Boolean simple) {
71 CxMempool *mp = cxMempoolCreateSimple(256); 71 CxMempool *mp = cxMempoolCreateSimple(256);
72 const CxAllocator *a = mp->allocator; 72 const CxAllocator *a = mp->allocator;
73 UiObject *obj = cxCalloc(a, 1, sizeof(UiObject)); 73 UiObject *obj = uic_object_new_toplevel();
74 obj->ctx = uic_context(obj, mp);
75 obj->window = window_data; 74 obj->window = window_data;
76 obj->destroy = ui_window_widget_destroy; 75 obj->destroy = ui_window_widget_destroy;
77 76
78 Arg args[16]; 77 Arg args[16];
79 int n = 0; 78 int n = 0;

mercurial