[gnome-shell/gnome-3-24] dateMenu: Fix a runtime warning
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gnome-3-24] dateMenu: Fix a runtime warning
- Date: Thu, 11 May 2017 13:21:16 +0000 (UTC)
commit 185f00336386b9bee1c532e9d9fab2d603ac6c53
Author: Florian Müllner <fmuellner gnome org>
Date: Fri Apr 28 16:54:28 2017 +0200
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 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/dateMenu.js b/js/ui/dateMenu.js
index 18b5b0b..1ce3779 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();
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]