OUCH. Fixed a MASSIVE bug in the GTK+ implementation of uiWindow: uiWindowSetChild() was DESTROYING the old child, not merely removing it! The other ports don't have this bug.

This commit is contained in:
Pietro Gagliardi 2015-12-12 15:30:56 -05:00
parent 18c5a6fd19
commit 3f9862c472
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ void uiWindowOnClosing(uiWindow *w, int (*f)(uiWindow *, void *), void *data)
void uiWindowSetChild(uiWindow *w, uiControl *child)
{
if (w->child != NULL)
childDestroy(w->child);
childRemove(w->child);
w->child = newChildWithBox(child, uiControl(w), w->vboxContainer, w->margined);
if (w->child != NULL) {
gtk_widget_set_hexpand(childBox(w->child), TRUE);