From 6362b3d057569856924e80e7cf661fff131ade9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Fri, 28 Apr 2017 16:54:28 +0200 Subject: [PATCH] dateMenu: Fix a runtime warning GJS now warns about excess parameters, so wrap the queue_relayout() into an anonymous function instead of using it directly as signal handler. --- js/ui/dateMenu.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/ui/dateMenu.js b/js/ui/dateMenu.js index 18b5b0b4f..1ce377936 100644 --- a/js/ui/dateMenu.js +++ b/js/ui/dateMenu.js @@ -370,8 +370,7 @@ const IndicatorPad = new Lang.Class({ _init: function(actor) { this._source = actor; - this._source.connect('notify::visible', - Lang.bind(this, this.queue_relayout)); + this._source.connect('notify::visible', () => { this.queue_relayout(); }); this.parent(); },