66 static UiObject* create_window(char *title, void *window_data, UiBool simple) { |
66 static UiObject* create_window(char *title, void *window_data, UiBool simple) { |
67 UcxMempool *mp = ucx_mempool_new(256); |
67 UcxMempool *mp = ucx_mempool_new(256); |
68 UiObject *obj = ucx_mempool_calloc(mp, 1, sizeof(UiObject)); |
68 UiObject *obj = ucx_mempool_calloc(mp, 1, sizeof(UiObject)); |
69 obj->widget = gtk_window_new(GTK_WINDOW_TOPLEVEL); |
69 obj->widget = gtk_window_new(GTK_WINDOW_TOPLEVEL); |
70 obj->ctx = uic_context(obj, mp); |
70 obj->ctx = uic_context(obj, mp); |
|
71 obj->window = window_data; |
71 |
72 |
72 if(title != NULL) { |
73 if(title != NULL) { |
73 gtk_window_set_title(GTK_WINDOW(obj->widget), title); |
74 gtk_window_set_title(GTK_WINDOW(obj->widget), title); |
74 } |
75 } |
75 |
76 |