diff --git a/js/ui/unlockDialog.js b/js/ui/unlockDialog.js index fcad52679..4483b5bdb 100644 --- a/js/ui/unlockDialog.js +++ b/js/ui/unlockDialog.js @@ -30,7 +30,7 @@ const UserWidget = new Lang.Class({ this.actor = new St.BoxLayout({ style_class: 'unlock-dialog-user-name-container', vertical: false }); - this._avatar = new UserMenu.UserAvatarWidget(user); + this._avatar = new UserMenu.UserAvatarWidget(user, { reactive: false }); this.actor.add(this._avatar.actor, { x_fill: true, y_fill: true }); diff --git a/js/ui/userMenu.js b/js/ui/userMenu.js index 08d09a594..c981e61ed 100644 --- a/js/ui/userMenu.js +++ b/js/ui/userMenu.js @@ -16,6 +16,7 @@ const GnomeSession = imports.misc.gnomeSession; const Main = imports.ui.main; const PanelMenu = imports.ui.panelMenu; const PopupMenu = imports.ui.popupMenu; +const Params = imports.misc.params; const Util = imports.misc.util; const LOCKDOWN_SCHEMA = 'org.gnome.desktop.lockdown'; @@ -45,12 +46,13 @@ const IMStatus = { const UserAvatarWidget = new Lang.Class({ Name: 'UserAvatarWidget', - _init: function(user) { + _init: function(user, params) { this._user = user; + params = Params.parse(params, { reactive: true }); this.actor = new St.Bin({ style_class: 'status-chooser-user-icon', - track_hover: true, - reactive: true }); + track_hover: params.reactive, + reactive: params.reactive }); }, update: function() {