You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
303 B
Vala
15 lines
303 B
Vala
int main(string[] args)
|
|
{
|
|
var loop = new MainLoop();
|
|
|
|
var foo = new Foo(loop);
|
|
foo.an_event.connect(() => {stdout.printf("Foo"); stdout.flush(); return false;});
|
|
|
|
var bar = new Bar(loop);
|
|
bar.an_event.connect(() => {stdout.printf("Bar\n"); loop.quit(); return false;});
|
|
|
|
loop.run();
|
|
|
|
return 0;
|
|
}
|