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
This commit is contained in:
Florian Müllner 2018-02-21 12:40:55 +01:00
parent 2e45be96b6
commit 66c86109dd

View File

@ -21,7 +21,9 @@ function main() {
Gtk.init(null); Gtk.init(null);
let win = new Gtk.Window({ title: nextTitle() }); let win = new Gtk.Window({ title: nextTitle() });
win.connect('destroy', Gtk.main_quit); win.connect('destroy', () => {
Gtk.main_quit();
});
win.present(); win.present();
Mainloop.timeout_add(5000, function() { Mainloop.timeout_add(5000, function() {