[gnome-shell] loginDialog: Don't display timed login indicator if unused
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] loginDialog: Don't display timed login indicator if unused
- Date: Thu, 19 Apr 2018 17:24:25 +0000 (UTC)
commit 1dd16618d15c850d6f7652c382b915f0938c6959
Author: verdre <verdre v0yd nl>
Date: Sat Apr 7 21:23:13 2018 +0200
loginDialog: Don't display timed login indicator if unused
This fixes the slightly bigger padding underneath the login item compared to the padding above
js/gdm/loginDialog.js | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js
index 052a1d814..bf7967700 100644
--- a/js/gdm/loginDialog.js
+++ b/js/gdm/loginDialog.js
@@ -85,7 +85,8 @@ var UserListItem = new Lang.Class({
GObject.BindingFlags.SYNC_CREATE);
this._timedLoginIndicator = new St.Bin({ style_class: 'login-dialog-timed-login-indicator',
- scale_x: 0 });
+ scale_x: 0,
+ visible: false });
layout.add(this._timedLoginIndicator);
this.actor.connect('clicked', this._onClicked.bind(this));
@@ -125,6 +126,8 @@ var UserListItem = new Lang.Class({
this.hideTimedLoginIndicator();
+ this._timedLoginIndicator.visible = true;
+
let startTime = GLib.get_monotonic_time();
this._timedLoginTimeoutId = GLib.timeout_add (GLib.PRIORITY_DEFAULT, 33,
@@ -151,6 +154,8 @@ var UserListItem = new Lang.Class({
GLib.source_remove(this._timedLoginTimeoutId);
this._timedLoginTimeoutId = 0;
}
+
+ this._timedLoginIndicator.visible = false;
this._timedLoginIndicator.scale_x = 0.;
}
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]