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
This commit is contained in:
Jasper St. Pierre 2013-08-23 12:49:04 -04:00
parent e4d46aee97
commit 1a415d5fa7
2 changed files with 3 additions and 3 deletions

View File

@ -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;
}

View File

@ -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) {