[gnome-shell] UnlockDialog: remove hover effect from the avatar widget
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] UnlockDialog: remove hover effect from the avatar widget
- Date: Thu, 16 Aug 2012 20:43:43 +0000 (UTC)
commit 80fde70995e8159d9650946b69a9f103c236bd81
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Thu Aug 16 22:21:14 2012 +0200
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
js/ui/unlockDialog.js | 2 +-
js/ui/userMenu.js | 8 +++++---
2 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/js/ui/unlockDialog.js b/js/ui/unlockDialog.js
index fcad526..4483b5b 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 08d09a5..c981e61 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() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]