[gnome-shell/wip/aggregate-menu: 41/56] network: Make sure that the network menu is insensitive when in the lock screen
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/aggregate-menu: 41/56] network: Make sure that the network menu is insensitive when in the lock screen
- Date: Tue, 16 Jul 2013 20:57:29 +0000 (UTC)
commit f7f467127b1a098f52cc0cd8c6bce35462e418a7
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Wed Jun 12 03:37:50 2013 -0400
network: Make sure that the network menu is insensitive when in the lock screen
js/ui/status/network.js | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/status/network.js b/js/ui/status/network.js
index d8359e7..3e203ec 100644
--- a/js/ui/status/network.js
+++ b/js/ui/status/network.js
@@ -1193,6 +1193,14 @@ const NMApplet = new Lang.Class({
this._client.connect('device-added', Lang.bind(this, this._deviceAdded));
this._client.connect('device-removed', Lang.bind(this, this._deviceRemoved));
this._settings.connect('new-connection', Lang.bind(this, this._newConnection));
+
+ Main.sessionMode.connect('updated', Lang.bind(this, this._sessionUpdated));
+ this._sessionUpdated();
+ },
+
+ _sessionUpdated: function() {
+ let sensitive = !Main.sessionMode.isLocked && !Main.sessionMode.isGreeter;
+ this._section.setSensitive(sensitive);
},
_ensureSource: function() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]