Once you set up your application, you have to give control over to Gtk's main loop. This is where all the events are processed and dispatched.

<?php
  gtk
::main(); // start the main loop
  
gtk::main_quit() // end the main loop
?>