Forgot to take a reference on GtkWindows; this led to weird GObject warnings on the command line when closing a window. Update #40.

This commit is contained in:
Pietro Gagliardi 2016-05-21 22:36:21 -04:00
parent a8fe3004a3
commit 5891b764cb
1 changed files with 4 additions and 0 deletions

View File

@ -158,5 +158,9 @@ uiWindow *uiNewWindow(const char *title, int width, int height, int hasMenubar)
g_signal_connect(w->widget, "delete-event", G_CALLBACK(onClosing), w);
uiWindowOnClosing(w, defaultOnClosing, NULL);
// normally it's SetParent() that does this, but we can't call SetParent() on a uiWindow
// TODO we really need to clean this up
g_object_ref(w->widget);
return w;
}