[gnome-shell/wip/fmuellner/test-fixes: 4/6] tests: Fix a warning



commit de5d3402b26b0b339252b39bf11a639b2ba07c78
Author: Florian Müllner <fmuellner gnome org>
Date:   Wed Feb 21 12:40:55 2018 +0100

    tests: Fix a warning
    
    Gjs now warns about excess parameters passed to functions, so don't
    use Gtk.main_quit directly as signal callback.

 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() {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]