dev/vala/hello/notify.vala
2012-09-30 19:46:05 +04:00

11 lines
252 B
Vala

public class Demo : Object {
public string title { get; set; }
}
void main () {
var demo = new Demo ();
demo.notify.connect ((s, p) => stdout.printf ("Property %s changed\n", p.name));
demo.title = "hello";
demo.title = "world";
}