diff options
-rw-r--r-- | gjs/src/astalify.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gjs/src/astalify.ts b/gjs/src/astalify.ts index 4b4145c..e46872e 100644 --- a/gjs/src/astalify.ts +++ b/gjs/src/astalify.ts @@ -147,6 +147,12 @@ function proxify< set(v) { Astal.widget_set_cursor(this, v) }, }) + // gjs deprecated the child setter + Object.defineProperty(klass.prototype, "child", { + get() { return this.get_child?.() }, + set(v) { setChild(this, v) }, + }) + const proxy = new Proxy(klass, { construct(_, [conf, ...children]) { const self = new klass |