diff -r db95c0104937 -r 06be29a56f8b ui/gtk/window.c --- a/ui/gtk/window.c Tue Apr 01 13:47:29 2014 +0200 +++ b/ui/gtk/window.c Wed Apr 02 09:59:38 2014 +0200 @@ -56,10 +56,10 @@ UiObject* ui_window(char *title, void *window_data) { UcxMempool *mp = ucx_mempool_new(256); - UiObject *obj = ucx_mempool_calloc(mp, 1, sizeof(UiObject)); + UiObject *obj = ucx_mempool_calloc(mp, 1, sizeof(UiObject)); + obj->widget = gtk_window_new (GTK_WINDOW_TOPLEVEL); obj->ctx = uic_context(obj, mp); - obj->widget = gtk_window_new (GTK_WINDOW_TOPLEVEL); if(title != NULL) { gtk_window_set_title(GTK_WINDOW(obj->widget), title); }