Skip to content

Commit ee91402

Browse files
committed
fix(gjs): pass type to vfunc_add_child
1 parent 8f64c2d commit ee91402

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lang/gjs/src/gtk4/astalify.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,12 @@ function _setChildren(widget: Gtk.Widget, children: any[]) {
2525
? ch
2626
: new Gtk.Label({ visible: true, label: String(ch) }))
2727

28+
2829
for (const child of children) {
2930
widget.vfunc_add_child(
3031
dummyBulder,
3132
child,
32-
type in widget ? widget[type] as string : null,
33+
type in child ? child[type] : null,
3334
)
3435
}
3536
}

0 commit comments

Comments
 (0)