Bug 591316 - Fix bad notify:: parameters

We weren't using them, and they were wrong.
This commit is contained in:
Colin Walters 2009-08-10 11:18:19 -04:00
parent 06d17e08c0
commit 9fa88caded
2 changed files with 3 additions and 3 deletions

View File

@ -490,7 +490,7 @@ WellDisplayItem.prototype = {
GLOW_COLOR.blue / 255, GLOW_COLOR.blue / 255,
GLOW_COLOR.alpha / 255); GLOW_COLOR.alpha / 255);
})); }));
this._name.connect('notify::allocation', Lang.bind(this, function (n, alloc) { this._name.connect('notify::allocation', Lang.bind(this, function () {
let x = this._name.x; let x = this._name.x;
let y = this._name.y; let y = this._name.y;
let width = this._name.width; let width = this._name.width;

View File

@ -347,10 +347,10 @@ GenericDisplay.prototype = {
this._list = new Shell.OverflowList({ spacing: 6.0, this._list = new Shell.OverflowList({ spacing: 6.0,
item_height: ITEM_DISPLAY_HEIGHT }); item_height: ITEM_DISPLAY_HEIGHT });
this._list.connect('notify::n-pages', Lang.bind(this, function (grid, alloc) { this._list.connect('notify::n-pages', Lang.bind(this, function () {
this._updateDisplayControl(true); this._updateDisplayControl(true);
})); }));
this._list.connect('notify::page', Lang.bind(this, function (grid, alloc) { this._list.connect('notify::page', Lang.bind(this, function () {
this._updateDisplayControl(false); this._updateDisplayControl(false);
})); }));