Remove use of deprecated "lang" package

This commit is contained in:
Grégory Soutadé 2021-10-01 09:02:34 +02:00
parent 1d3328f71e
commit 7a5f506c23

View File

@ -31,7 +31,6 @@
const St = imports.gi.St; const St = imports.gi.St;
const Gio = imports.gi.Gio; const Gio = imports.gi.Gio;
const Lang = imports.lang;
const GLib = imports.gi.GLib const GLib = imports.gi.GLib
const Main = imports.ui.main; const Main = imports.ui.main;
const Mainloop = imports.mainloop; const Mainloop = imports.mainloop;
@ -105,7 +104,7 @@ class SignalMgt {
id = widget.connect('scroll-event', this._onScroll.bind(this)); id = widget.connect('scroll-event', this._onScroll.bind(this));
array.push(id); array.push(id);
widget.set_reactive(true); 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); array.push(id);
} }
@ -170,7 +169,7 @@ class SignalMgt {
this.nbClicks = 1; this.nbClicks = 1;
Mainloop.timeout_add(this.dbus.ClutterSettings['double-click-time'], Mainloop.timeout_add(this.dbus.ClutterSettings['double-click-time'],
Lang.bind(this, this._doClickCallback)); this._doClickCallback.bind(this));
} }
return Clutter.EVENT_PROPAGATE; return Clutter.EVENT_PROPAGATE;