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.
This commit is contained in:
Florian Müllner 2017-04-28 16:54:28 +02:00
parent 6734746707
commit 185f003363

View File

@ -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();
},