[gnome] Update extensions

This commit is contained in:
2026-06-10 11:03:09 -04:00
parent 20fc1e4e75
commit 6c973853c6
394 changed files with 12513 additions and 1340 deletions

View File

@ -111,11 +111,26 @@ export const Interface = GObject.registerClass({
* @param {Gio.DBusInterfaceInfo} info - The DBus interface
* @param {Gio.DBusInterface} iface - The DBus interface
* @param {string} name - The DBus method name
* @param {GLib.Variant} parameters - The method parameters
* @param {Gio.DBusMethodInvocation} invocation - The method invocation info
* @param {GLib.Variant|Gio.DBusMethodInvocation} param1 - The method parameters or invocation (GNOME 50+ changed order)
* @param {Gio.DBusMethodInvocation|GLib.Variant} param2 - The method invocation or parameters (GNOME 50+ changed order)
*/
async _call(info, iface, name, parameters, invocation) {
async _call(info, iface, name, param1, param2) {
let retval;
let invocation, parameters;
// GNOME 50+ changed the callback signature from
// (iface, name, parameters, invocation) to
// (iface, name, invocation, parameters)
// Detect which order is being used
if (param1 instanceof GLib.Variant) {
// Old order: parameters, invocation
parameters = param1;
invocation = param2;
} else {
// New order: invocation, parameters
invocation = param1;
parameters = param2;
}
// Invoke the instance method
try {
@ -241,7 +256,7 @@ export const Interface = GObject.registerClass({
});
/**
* Get a new, dedicated DBus connection on @busType
* Get a new, dedicated DBus connection on {@link busType}
*
* @param {Gio.BusType} [busType] - a Gio.BusType constant
* @param {Gio.Cancellable} [cancellable] - an optional Gio.Cancellable

View File

@ -74,9 +74,9 @@ const _numberRegex = new RegExp(
/**
* Searches @str for URLs and returns an array of objects with %url
* Searches {@link str} for URLs and returns an array of objects with %url
* properties showing the matched URL string, and %pos properties indicating
* the position within @str where the URL was found.
* the position within {@link str} where the URL was found.
*
* @param {string} str - the string to search
* @returns {object[]} the list of match objects, as described above