File: modules-package-Fix-checking-interface-properties.patch

package info (click to toggle)
gjs 1.82.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,380 kB
  • sloc: cpp: 34,404; javascript: 27,796; ansic: 13,034; sh: 1,607; python: 780; xml: 116; makefile: 36
file content (28 lines) | stat: -rw-r--r-- 1,236 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From: =?utf-8?q?Florian_M=C3=BCllner?= <fmuellner@gnome.org>
Date: Mon, 8 Sep 2025 18:06:41 +0200
Subject: modules/package: Fix checking interface properties

GObject.type_default_interface_ref() is no longer
introspectable for some reason, but as it is deprecated
in favor of GObject.type_default_interface_get() anyway,
use that instead.

Bug: https://gitlab.gnome.org/GNOME/gjs/-/issues/711
Origin: upstream, 1.86.0, commit:054f78c756b631c347c6f64ab5b7349331f5f420
---
 modules/script/package.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/script/package.js b/modules/script/package.js
index cc308f8..9e5d217 100644
--- a/modules/script/package.js
+++ b/modules/script/package.js
@@ -285,7 +285,7 @@ function checkSymbol(lib, ver, symbol) {
     // GObject property
     let pspec = null;
     if (GObject.type_is_a(obj.$gtype, GObject.TYPE_INTERFACE)) {
-        let iface = GObject.type_default_interface_ref(obj.$gtype);
+        let iface = GObject.type_default_interface_get(obj.$gtype);
         pspec = GObject.Object.interface_find_property(iface, sym);
     } else if (GObject.type_is_a(obj.$gtype, GObject.TYPE_OBJECT)) {
         pspec = GObject.Object.find_property.call(obj.$gtype, sym);