1class Bar : Object 2{ 3 public signal bool an_event(); 4 5 public Bar(MainLoop loop) 6 { 7 var time = new TimeoutSource(8000); 8 time.set_callback(() => {return an_event();}); 9 time.attach(loop.get_context()); 10 } 11} 12 13