summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFlorian Müllner <fmuellner@gnome.org>2018-02-21 12:40:55 +0100
committerFlorian Müllner <fmuellner@gnome.org>2018-02-21 14:30:30 +0100
commit66c86109dd709843f2948407f44c9e5b98205c86 (patch)
tree42e7a44ebc0ac8e66ad0186cba209842a86fec54 /tests
parent2e45be96b62a3c97c2261bbd88490ff1f5ea0e3b (diff)
downloadgnome-shell-66c86109dd709843f2948407f44c9e5b98205c86.tar.gz
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
Diffstat (limited to 'tests')
-rwxr-xr-xtests/interactive/test-title.js4
1 files changed, 3 insertions, 1 deletions
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() {