From b1239b1257fe2990f19b7d6eb31af10fd3c1c26a Mon Sep 17 00:00:00 2001 From: verdre Date: Tue, 17 Apr 2018 16:43:06 +0200 Subject: [PATCH] loginDialog: Use GLib instead of Mainloop for timeout imports.mainloop is deprecated --- js/gdm/loginDialog.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js index 4cb79664c..dc5eaa235 100644 --- a/js/gdm/loginDialog.js +++ b/js/gdm/loginDialog.js @@ -25,7 +25,6 @@ const GLib = imports.gi.GLib; const GObject = imports.gi.GObject; const Gtk = imports.gi.Gtk; const Lang = imports.lang; -const Mainloop = imports.mainloop; const Meta = imports.gi.Meta; const Pango = imports.gi.Pango; const Shell = imports.gi.Shell; @@ -1008,7 +1007,7 @@ var LoginDialog = new Lang.Class({ let hold = new Batch.Hold(); - this._timedLoginIdleTimeOutId = Mainloop.timeout_add_seconds(_TIMED_LOGIN_IDLE_THRESHOLD, + this._timedLoginIdleTimeOutId = GLib.timeout_add_seconds(GLib.PRIORITY_DEFAULT, _TIMED_LOGIN_IDLE_THRESHOLD, () => { this._timedLoginAnimationTime -= _TIMED_LOGIN_IDLE_THRESHOLD; hold.release();