summaryrefslogtreecommitdiff
path: root/lang/gjs/src/gobject.ts
diff options
context:
space:
mode:
authorkotontrion <[email protected]>2024-11-16 12:40:07 +0100
committerkotontrion <[email protected]>2024-11-16 12:40:07 +0100
commit1351db8d5b80c7521e808f81c91977a5dd2d9d34 (patch)
treea1469ed4aaca0f1f42e6d9a9251f5ccc9ff8bf78 /lang/gjs/src/gobject.ts
parente674e8f6e49e74edde795e012adbfe0fcfd8d729 (diff)
parent433984c5830aac3fcde66ffff93d0dc7e5e69366 (diff)
Merge branch 'main' into feat/tray-gtk4
Diffstat (limited to 'lang/gjs/src/gobject.ts')
-rw-r--r--lang/gjs/src/gobject.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/lang/gjs/src/gobject.ts b/lang/gjs/src/gobject.ts
index 59dd62a..b744cfb 100644
--- a/lang/gjs/src/gobject.ts
+++ b/lang/gjs/src/gobject.ts
@@ -51,6 +51,8 @@ export function register(options: MetaInfo = {}) {
Properties: { ...cls[meta]?.Properties },
...options,
}, cls)
+
+ delete cls[meta]
}
}
@@ -124,7 +126,9 @@ export function signal(
}
}
else {
- target.constructor[meta].Signals[name] = declaration
+ target.constructor[meta].Signals[name] = declaration || {
+ param_types: [],
+ }
}
if (!desc) {