63 |
63 |
64 static UiObject* create_window(char *title, void *window_data, UiBool simple) { |
64 static UiObject* create_window(char *title, void *window_data, UiBool simple) { |
65 UcxMempool *mp = ucx_mempool_new(256); |
65 UcxMempool *mp = ucx_mempool_new(256); |
66 UiObject *obj = ucx_mempool_calloc(mp, 1, sizeof(UiObject)); |
66 UiObject *obj = ucx_mempool_calloc(mp, 1, sizeof(UiObject)); |
67 obj->ctx = uic_context(obj, mp); |
67 obj->ctx = uic_context(obj, mp); |
|
68 obj->window = window_data; |
68 |
69 |
69 Arg args[16]; |
70 Arg args[16]; |
70 int n = 0; |
71 int n = 0; |
71 |
72 |
72 XtSetArg(args[0], XmNtitle, title); |
73 XtSetArg(args[0], XmNtitle, title); |