Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Class declaration
- public class Worm : Object
- {
- int score;
- }
- // Connecting to signal
- var worm = new Worm ();
- worm.notify["score"].connect ((s, p) => {
- stderr.printf("Test\n");
- });
- // Trying to change the property right after connecting
- worm.score++;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement