mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
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
1 changed files with 3 additions and 1 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue