[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

@ -194,7 +194,7 @@ String.prototype.toPhoneNumber = function () {
* A simple equality check for phone numbers based on `toPhoneNumber()`
*
* @param {string} number - A phone number string to compare
* @returns {boolean} If `this` and @number are equivalent phone numbers
* @returns {boolean} If `this` and {@link number} are equivalent phone numbers
*/
String.prototype.equalsPhoneNumber = function (number) {
const a = this.toPhoneNumber();
@ -241,7 +241,7 @@ Gio.File.rm_rf = function (file) {
/**
* Extend GLib.Variant with a static method to recursively pack a variant
*
* @param {*} [obj] - May be a GLib.Variant, Array, standard Object or literal.
* @param {object} [obj] - May be a GLib.Variant, Array, standard Object or literal.
* @returns {GLib.Variant} The resulting GVariant
*/
function _full_pack(obj) {
@ -297,8 +297,8 @@ GLib.Variant.full_pack = _full_pack;
/**
* Extend GLib.Variant with a method to recursively deepUnpack() a variant
*
* @param {*} [obj] - May be a GLib.Variant, Array, standard Object or literal.
* @returns {*} The resulting object
* @param {object} [obj] - May be a GLib.Variant, Array, standard Object or literal.
* @returns {object} The resulting object
*/
function _full_unpack(obj) {
obj = (obj === undefined) ? this : obj;
@ -353,7 +353,7 @@ GLib.Variant.prototype.full_unpack = _full_unpack;
* @param {string} keyPath - Absolute path to a private key in PEM format
* @param {string} commonName - A unique common name for the certificate
* @returns {Gio.TlsCertificate} A TLS certificate
* @throws MissingOpensslError on missing openssl binary
* @throws {MissingOpensslError} on missing openssl binary
*/
Gio.TlsCertificate.new_for_paths = function (certPath, keyPath, commonName = null) {
if (GLib.find_program_in_path(Config.OPENSSL_PATH) === null) {