[gnome-shell] Fix misuse of ShellGenericContainerAllocation in two places
- From: Dan Winship <danw src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-shell] Fix misuse of ShellGenericContainerAllocation in two places
- Date: Mon, 1 Feb 2010 16:55:27 +0000 (UTC)
commit df48e9d1c0b89296dd40a8eabb1439b69c853e92
Author: Dan Winship <danw gnome org>
Date: Mon Feb 1 11:51:40 2010 -0500
Fix misuse of ShellGenericContainerAllocation in two places
js/ui/altTab.js | 4 ++--
js/ui/workspacesView.js | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/js/ui/altTab.js b/js/ui/altTab.js
index f211a8b..412225a 100644
--- a/js/ui/altTab.js
+++ b/js/ui/altTab.js
@@ -512,7 +512,7 @@ SwitcherList.prototype = {
let totalSpacing = this._list.spacing * (this._items.length - 1);
alloc.min_size = this._items.length * maxChildMin + separatorWidth + totalSpacing;
- alloc.nat_size = this._items.length * maxChildNat + separatorWidth + totalSpacing;
+ alloc.natural_size = this._items.length * maxChildNat + separatorWidth + totalSpacing;
},
_getPreferredHeight: function (actor, forWidth, alloc) {
@@ -532,7 +532,7 @@ SwitcherList.prototype = {
}
alloc.min_size = maxChildMin;
- alloc.nat_size = maxChildNat;
+ alloc.natural_size = maxChildNat;
},
_allocate: function (actor, box, flags) {
diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js
index a93c87b..c640fe1 100644
--- a/js/ui/workspacesView.js
+++ b/js/ui/workspacesView.js
@@ -747,7 +747,7 @@ SingleView.prototype = {
width = children[i].x + children[i].width;
}
alloc.min_size = width;
- alloc.nat_size = width;
+ alloc.natural_size = width;
}));
this._indicatorsPanel.connect('get-preferred-height', Lang.bind(this, function (actor, fw, alloc) {
let children = actor.get_children();
@@ -755,7 +755,7 @@ SingleView.prototype = {
if (children.length)
height = children[0].height;
alloc.min_size = height;
- alloc.nat_size = height;
+ alloc.natural_size = height;
}));
this._indicatorsPanel.connect('allocate', Lang.bind(this, function (actor, box, flags) {
let children = actor.get_children();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]