[gnome-shell] [panel] Remove hardcoded uses of PANEL_HEIGHT
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] [panel] Remove hardcoded uses of PANEL_HEIGHT
- Date: Tue, 27 Apr 2010 17:09:54 +0000 (UTC)
commit 704354be2c575c305433e8805aa420ffe73c280f
Author: Colin Walters <walters verbum org>
Date: Tue Apr 27 10:36:20 2010 -0400
[panel] Remove hardcoded uses of PANEL_HEIGHT
It's cleaner to just y_fill.
https://bugzilla.gnome.org/show_bug.cgi?id=616951
js/ui/panel.js | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/js/ui/panel.js b/js/ui/panel.js
index 5485d30..d68b8d5 100644
--- a/js/ui/panel.js
+++ b/js/ui/panel.js
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]