ui/motif/window.c

changeset 108
77254bd6dccb
parent 103
6606616eca9f
equal deleted inserted replaced
107:b34bd1557c6c 108:77254bd6dccb
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