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:
parent
2e45be96b6
commit
66c86109dd
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user