[gnome-shell] userWidget: Actually respect the iconSize parameter
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] userWidget: Actually respect the iconSize parameter
- Date: Fri, 23 Aug 2013 17:31:52 +0000 (UTC)
commit 1a415d5fa7b970de588171cc4eb444e1d9a7eff7
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Fri Aug 23 12:49:04 2013 -0400
userWidget: Actually respect the iconSize parameter
The iconSize parameter was only being respected if it was the
default icon fallback.
https://bugzilla.gnome.org/show_bug.cgi?id=706681
data/theme/gnome-shell.css | 2 --
js/ui/userWidget.js | 4 +++-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/data/theme/gnome-shell.css b/data/theme/gnome-shell.css
index 5838cde..320c430 100644
--- a/data/theme/gnome-shell.css
+++ b/data/theme/gnome-shell.css
@@ -2244,8 +2244,6 @@ StScrollBar StButton#vhandle:active {
.framed-user-icon {
border: 2px solid #8b8b8b;
border-radius: 5px;
- width: 48pt;
- height: 48pt;
background-size: contain;
}
diff --git a/js/ui/userWidget.js b/js/ui/userWidget.js
index 47c28aa..f801a54 100644
--- a/js/ui/userWidget.js
+++ b/js/ui/userWidget.js
@@ -29,7 +29,9 @@ const Avatar = new Lang.Class({
this.actor = new St.Bin({ style_class: params.styleClass,
track_hover: params.reactive,
- reactive: params.reactive });
+ reactive: params.reactive,
+ width: this._iconSize,
+ height: this._iconSize });
},
setSensitive: function(sensitive) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]