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:
parent
a8fe3004a3
commit
5891b764cb
|
@ -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);
|
g_signal_connect(w->widget, "delete-event", G_CALLBACK(onClosing), w);
|
||||||
uiWindowOnClosing(w, defaultOnClosing, NULL);
|
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;
|
return w;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue