[panel] Remove vertical padding for panel-button

This fixes the status menu requesting 27 pixels, which causes
the slicer for the icon to overdraw.

https://bugzilla.gnome.org/show_bug.cgi?id=616951
This commit is contained in:
Colin Walters 2010-04-27 10:35:32 -04:00
parent 704354be2c
commit 0513297029
2 changed files with 3 additions and 3 deletions

View File

@ -119,7 +119,7 @@ StTooltip {
} }
.panel-button { .panel-button {
padding: 4px 12px 3px; padding: 0px 12px;
border-radius: 5px; border-radius: 5px;
border-radius-bottomleft: 0px; border-radius-bottomleft: 0px;
border-radius-bottomright: 0px; border-radius-bottomright: 0px;

View File

@ -32,7 +32,7 @@ StatusMenu.prototype = {
this.actor.connect('destroy', Lang.bind(this, this._onDestroy)); this.actor.connect('destroy', Lang.bind(this, this._onDestroy));
this._iconBox = new St.Bin(); this._iconBox = new St.Bin();
this.actor.add(this._iconBox, { y_align: St.Align.MIDDLE }); this.actor.add(this._iconBox, { y_align: St.Align.MIDDLE, y_fill: false });
let textureCache = St.TextureCache.get_default(); let textureCache = St.TextureCache.get_default();
// FIXME: these icons are all wrong (likewise in createSubMenu) // FIXME: these icons are all wrong (likewise in createSubMenu)
@ -45,7 +45,7 @@ StatusMenu.prototype = {
this._presence.getStatus(Lang.bind(this, this._updatePresenceIcon)); this._presence.getStatus(Lang.bind(this, this._updatePresenceIcon));
this._name = new St.Label({ text: this._user.get_real_name() }); this._name = new St.Label({ text: this._user.get_real_name() });
this.actor.add(this._name, { expand: true, y_align: St.Align.MIDDLE }); this.actor.add(this._name, { y_align: St.Align.MIDDLE, y_fill: false });
this._userNameChangedId = this._user.connect('notify::display-name', Lang.bind(this, this._updateUserName)); this._userNameChangedId = this._user.connect('notify::display-name', Lang.bind(this, this._updateUserName));
this._createSubMenu(); this._createSubMenu();