[vala/0.42] tests: Don't use deprecated syntax to connect signals



commit 722db5367e2349f8491202e8cea7abc6fce20215
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Sun Sep 23 09:42:19 2018 +0200

    tests: Don't use deprecated syntax to connect signals

 tests/objects/properties.vala | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/objects/properties.vala b/tests/objects/properties.vala
index 8008c1acb..cc5a6d839 100644
--- a/tests/objects/properties.vala
+++ b/tests/objects/properties.vala
@@ -41,10 +41,10 @@ public class Sample : Object {
        }
 
        public void run() {
-               notify += (s, p) => {
+               notify.connect ((s, p) => {
                        stdout.printf("property `%s' has changed!\n",
                                      p.name);
-               };
+               });
 
 
                automatic = "TheNewAutomatic";


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