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;