diff options
Diffstat (limited to 'lang/gjs/src/gtk4/astalify.ts')
-rw-r--r-- | lang/gjs/src/gtk4/astalify.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lang/gjs/src/gtk4/astalify.ts b/lang/gjs/src/gtk4/astalify.ts index 19d2418..eb71bdb 100644 --- a/lang/gjs/src/gtk4/astalify.ts +++ b/lang/gjs/src/gtk4/astalify.ts @@ -25,11 +25,12 @@ function _setChildren(widget: Gtk.Widget, children: any[]) { ? ch : new Gtk.Label({ visible: true, label: String(ch) })) + for (const child of children) { widget.vfunc_add_child( dummyBulder, child, - type in widget ? widget[type] as string : null, + type in child ? child[type] : null, ) } } |