From 3f9862c472c95a7ef610b3ab0e9e423242490cb6 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sat, 12 Dec 2015 15:30:56 -0500 Subject: [PATCH] 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. --- unix/window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unix/window.c b/unix/window.c index a33aa9c9..5f788914 100644 --- a/unix/window.c +++ b/unix/window.c @@ -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);