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:
parent
18c5a6fd19
commit
3f9862c472
|
@ -96,7 +96,7 @@ void uiWindowOnClosing(uiWindow *w, int (*f)(uiWindow *, void *), void *data)
|
||||||
void uiWindowSetChild(uiWindow *w, uiControl *child)
|
void uiWindowSetChild(uiWindow *w, uiControl *child)
|
||||||
{
|
{
|
||||||
if (w->child != NULL)
|
if (w->child != NULL)
|
||||||
childDestroy(w->child);
|
childRemove(w->child);
|
||||||
w->child = newChildWithBox(child, uiControl(w), w->vboxContainer, w->margined);
|
w->child = newChildWithBox(child, uiControl(w), w->vboxContainer, w->margined);
|
||||||
if (w->child != NULL) {
|
if (w->child != NULL) {
|
||||||
gtk_widget_set_hexpand(childBox(w->child), TRUE);
|
gtk_widget_set_hexpand(childBox(w->child), TRUE);
|
||||||
|
|
Loading…
Reference in New Issue