forked from pyrite-dev/milsko
add NULL as parent for MwReparent
This commit is contained in:
parent
2a09a71659
commit
201c5f84a5
1 changed files with 4 additions and 2 deletions
|
|
@ -1018,9 +1018,11 @@ void MwReparent(MwWidget handle, MwWidget new_parent) {
|
||||||
}
|
}
|
||||||
|
|
||||||
handle->parent = new_parent;
|
handle->parent = new_parent;
|
||||||
arrput(new_parent->children, handle);
|
if(new_parent != NULL) {
|
||||||
|
arrput(new_parent->children, handle);
|
||||||
|
|
||||||
MwDispatch(handle->parent, children_update);
|
MwDispatch(handle->parent, children_update);
|
||||||
|
}
|
||||||
|
|
||||||
MwForceRender(handle);
|
MwForceRender(handle);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue