We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46b67ec commit 61a0f0fCopy full SHA for 61a0f0f
1 file changed
src/widget.c
@@ -160,12 +160,13 @@ void widget_add(struct widget *parent, struct widget *child)
160
if (!parent || !child)
161
return;
162
163
+ child->parent = parent;
164
+
165
if (parent->add_child) {
166
parent->add_child(parent, child);
167
168
}
169
- child->parent = parent;
170
TAILQ_INSERT_TAIL(&parent->children, child, siblings);
171
172
0 commit comments