cleanup: Use deepUnpack() intead of deep_unpack()
deep_unpack() is just a backwards compability alias for deepUnpack()[1].
The new name makes it more clear that this is not a C function, start to
use it.
[1] 13e662a29d
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2416>
This commit is contained in:

committed by
Marge Bot

parent
ade4b23796
commit
b63c6ac0ef
@@ -42,7 +42,7 @@ function canLock() {
|
||||
Gio.DBusCallFlags.NONE,
|
||||
-1, null);
|
||||
|
||||
let version = result.deep_unpack()[0].deep_unpack();
|
||||
let version = result.deepUnpack()[0].deepUnpack();
|
||||
return haveSystemd() && versionCompare('3.5.91', version);
|
||||
} catch (e) {
|
||||
return false;
|
||||
|
@@ -250,14 +250,14 @@ var BroadbandModem = GObject.registerClass({
|
||||
this._reloadSignalQuality();
|
||||
|
||||
this._proxy_3gpp.connect('g-properties-changed', (proxy, properties) => {
|
||||
let unpacked = properties.deep_unpack();
|
||||
let unpacked = properties.deepUnpack();
|
||||
if ('OperatorName' in unpacked || 'OperatorCode' in unpacked)
|
||||
this._reload3gppOperatorName();
|
||||
});
|
||||
this._reload3gppOperatorName();
|
||||
|
||||
this._proxy_cdma.connect('g-properties-changed', (proxy, properties) => {
|
||||
let unpacked = properties.deep_unpack();
|
||||
let unpacked = properties.deepUnpack();
|
||||
if ('Nid' in unpacked || 'Sid' in unpacked)
|
||||
this._reloadCdmaOperatorName();
|
||||
});
|
||||
|
@@ -294,7 +294,7 @@ var WeatherClient = class extends Signals.EventEmitter {
|
||||
}
|
||||
|
||||
_onLocationsChanged() {
|
||||
let locations = this._settings.get_value('locations').deep_unpack();
|
||||
let locations = this._settings.get_value('locations').deepUnpack();
|
||||
let serialized = locations.shift();
|
||||
let mostRecentLocation = null;
|
||||
|
||||
|
Reference in New Issue
Block a user