summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorMarco Trevisan (TreviƱo) <mail@3v1n0.net>2022-10-05 22:16:24 +0200
committerPhilip Chimento <philip.chimento@gmail.com>2022-10-29 15:27:56 -0700
commit0dd4959658d51d5f27a776721f004d62da45fd05 (patch)
tree8694b0b07fb03211715bb42ec5b4bc2dfba04702 /modules
parent904050e98ceaff0d1807ab852d223952f964a0c9 (diff)
downloadgjs-0dd4959658d51d5f27a776721f004d62da45fd05.tar.gz
GObject: Ensure that static methods are accessible from a subtype
It makes sense to be able to use a static method even from a subtype
Diffstat (limited to 'modules')
-rw-r--r--modules/core/overrides/GObject.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/core/overrides/GObject.js b/modules/core/overrides/GObject.js
index f3dce686..54781526 100644
--- a/modules/core/overrides/GObject.js
+++ b/modules/core/overrides/GObject.js
@@ -549,6 +549,8 @@ function _init() {
// Reverse the interface array to give the last required interface precedence over the first.
const requiredInterfaces = [...gobjectInterfaces].reverse();
requiredInterfaces.forEach(iface =>
+ _copyInterfacePrototypeDescriptors(klass, iface));
+ requiredInterfaces.forEach(iface =>
_copyInterfacePrototypeDescriptors(klass.prototype, iface.prototype));
Object.getOwnPropertyNames(klass.prototype)