From 9fa88caded499aa3565e712a632326250c437fcf Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Mon, 10 Aug 2009 11:18:19 -0400 Subject: [PATCH] Bug 591316 - Fix bad notify:: parameters We weren't using them, and they were wrong. --- js/ui/appDisplay.js | 2 +- js/ui/genericDisplay.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index 5ec1a4b26..96911bcc5 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -490,7 +490,7 @@ WellDisplayItem.prototype = { GLOW_COLOR.blue / 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 y = this._name.y; let width = this._name.width; diff --git a/js/ui/genericDisplay.js b/js/ui/genericDisplay.js index 22e26e259..feb94d378 100644 --- a/js/ui/genericDisplay.js +++ b/js/ui/genericDisplay.js @@ -347,10 +347,10 @@ GenericDisplay.prototype = { this._list = new Shell.OverflowList({ spacing: 6.0, 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._list.connect('notify::page', Lang.bind(this, function (grid, alloc) { + this._list.connect('notify::page', Lang.bind(this, function () { this._updateDisplayControl(false); }));