From 7a5f506c238cd68adf762882529442ce598fe374 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Soutad=C3=A9?= Date: Fri, 1 Oct 2021 09:02:34 +0200 Subject: [PATCH] Remove use of deprecated "lang" package --- extension.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/extension.js b/extension.js index 3b5d8be..171ebd3 100644 --- a/extension.js +++ b/extension.js @@ -31,7 +31,6 @@ const St = imports.gi.St; const Gio = imports.gi.Gio; -const Lang = imports.lang; const GLib = imports.gi.GLib const Main = imports.ui.main; const Mainloop = imports.mainloop; @@ -105,7 +104,7 @@ class SignalMgt { id = widget.connect('scroll-event', this._onScroll.bind(this)); array.push(id); widget.set_reactive(true); - id = widget.connect('button-release-event', Lang.bind(this, this._clicked)); + id = widget.connect('button-release-event', this._clicked.bind(this)); array.push(id); } @@ -170,7 +169,7 @@ class SignalMgt { this.nbClicks = 1; Mainloop.timeout_add(this.dbus.ClutterSettings['double-click-time'], - Lang.bind(this, this._doClickCallback)); + this._doClickCallback.bind(this)); } return Clutter.EVENT_PROPAGATE;