userMenu: Make the user menu insensitive in the lock screen
And show a lock icon as well. https://bugzilla.gnome.org/show_bug.cgi?id=683156
This commit is contained in:
@ -115,6 +115,12 @@ const Button = new Lang.Class({
|
||||
this.setName(nameText);
|
||||
},
|
||||
|
||||
setSensitive: function(sensitive) {
|
||||
this.actor.reactive = sensitive;
|
||||
this.actor.can_focus = sensitive;
|
||||
this.actor.track_hover = sensitive;
|
||||
},
|
||||
|
||||
setName: function(text) {
|
||||
if (text != null) {
|
||||
// This is the easiest way to provide a accessible name to
|
||||
|
Reference in New Issue
Block a user