From 66c86109dd709843f2948407f44c9e5b98205c86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Wed, 21 Feb 2018 12:40:55 +0100 Subject: [PATCH] tests: Fix a warning Gjs now warns about excess parameters passed to functions, so don't use Gtk.main_quit directly as signal callback. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/38 --- tests/interactive/test-title.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/interactive/test-title.js b/tests/interactive/test-title.js index 9dea45f8e..9df90218a 100755 --- a/tests/interactive/test-title.js +++ b/tests/interactive/test-title.js @@ -21,7 +21,9 @@ function main() { Gtk.init(null); let win = new Gtk.Window({ title: nextTitle() }); - win.connect('destroy', Gtk.main_quit); + win.connect('destroy', () => { + Gtk.main_quit(); + }); win.present(); Mainloop.timeout_add(5000, function() {