[panel] Remove hardcoded uses of PANEL_HEIGHT

It's cleaner to just y_fill.

https://bugzilla.gnome.org/show_bug.cgi?id=616951
This commit is contained in:
Colin Walters 2010-04-27 10:36:20 -04:00
parent 3715109ebe
commit 704354be2c

View File

@ -348,7 +348,6 @@ Panel.prototype = {
style_class: 'panel-button',
reactive: true });
this.button.set_child(label);
this.button.height = PANEL_HEIGHT;
this._leftBox.add(this.button);
@ -439,9 +438,9 @@ Panel.prototype = {
let statusmenu = this._statusmenu = new StatusMenu.StatusMenu();
let statusbutton = new St.Clickable({ name: 'panelStatus',
style_class: 'panel-button',
reactive: true });
reactive: true,
y_fill: true });
statusbutton.set_child(statusmenu.actor);
statusbutton.height = PANEL_HEIGHT;
statusbutton.connect('clicked', function (b, event) {
statusmenu.toggle(event);
// The statusmenu might not pop up if it couldn't get a pointer grab