ui/gtk/window.c

changeset 128
c284c15509a8
parent 111
40dbf1a7526a
child 133
6dd780cbc8c6
equal deleted inserted replaced
127:ce342364fad5 128:c284c15509a8
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

mercurial