UnlockDialog: remove hover effect from the avatar widget
It is not clickable, so it should not have any hover. https://bugzilla.gnome.org/show_bug.cgi?id=681143
This commit is contained in:
parent
cbb56b6128
commit
80fde70995
@ -30,7 +30,7 @@ const UserWidget = new Lang.Class({
|
|||||||
this.actor = new St.BoxLayout({ style_class: 'unlock-dialog-user-name-container',
|
this.actor = new St.BoxLayout({ style_class: 'unlock-dialog-user-name-container',
|
||||||
vertical: false });
|
vertical: false });
|
||||||
|
|
||||||
this._avatar = new UserMenu.UserAvatarWidget(user);
|
this._avatar = new UserMenu.UserAvatarWidget(user, { reactive: false });
|
||||||
this.actor.add(this._avatar.actor,
|
this.actor.add(this._avatar.actor,
|
||||||
{ x_fill: true, y_fill: true });
|
{ x_fill: true, y_fill: true });
|
||||||
|
|
||||||
|
@ -16,6 +16,7 @@ const GnomeSession = imports.misc.gnomeSession;
|
|||||||
const Main = imports.ui.main;
|
const Main = imports.ui.main;
|
||||||
const PanelMenu = imports.ui.panelMenu;
|
const PanelMenu = imports.ui.panelMenu;
|
||||||
const PopupMenu = imports.ui.popupMenu;
|
const PopupMenu = imports.ui.popupMenu;
|
||||||
|
const Params = imports.misc.params;
|
||||||
const Util = imports.misc.util;
|
const Util = imports.misc.util;
|
||||||
|
|
||||||
const LOCKDOWN_SCHEMA = 'org.gnome.desktop.lockdown';
|
const LOCKDOWN_SCHEMA = 'org.gnome.desktop.lockdown';
|
||||||
@ -45,12 +46,13 @@ const IMStatus = {
|
|||||||
const UserAvatarWidget = new Lang.Class({
|
const UserAvatarWidget = new Lang.Class({
|
||||||
Name: 'UserAvatarWidget',
|
Name: 'UserAvatarWidget',
|
||||||
|
|
||||||
_init: function(user) {
|
_init: function(user, params) {
|
||||||
this._user = user;
|
this._user = user;
|
||||||
|
params = Params.parse(params, { reactive: true });
|
||||||
|
|
||||||
this.actor = new St.Bin({ style_class: 'status-chooser-user-icon',
|
this.actor = new St.Bin({ style_class: 'status-chooser-user-icon',
|
||||||
track_hover: true,
|
track_hover: params.reactive,
|
||||||
reactive: true });
|
reactive: params.reactive });
|
||||||
},
|
},
|
||||||
|
|
||||||
update: function() {
|
update: function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user