cleanup: Use (un)block_signal_handler() convenience wrapper

We now depend on a gjs version that is guaranteed to provide those
more idiomatic wrappers, so use them instead of the clunkier static
methods.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/795
This commit is contained in:
Florian Müllner
2019-10-30 18:11:56 +01:00
committed by Florian Müllner
parent 7bc39ba750
commit 284ace5b5f
3 changed files with 6 additions and 6 deletions

View File

@ -579,9 +579,9 @@ class ExtensionRow extends Gtk.ListBoxRow {
this._extension = ExtensionUtils.deserializeExtension(newState);
let state = (this._extension.state == ExtensionState.ENABLED);
GObject.signal_handler_block(this._switch, this._notifyActiveId);
this._switch.block_signal_handler(this._notifyActiveId);
this._switch.state = state;
GObject.signal_handler_unblock(this._switch, this._notifyActiveId);
this._switch.unblock_signal_handler(this._notifyActiveId);
this._switch.sensitive = this._canToggle();
});