if (!class_exists('gtk')) 
{
    die();
}

$wnd = new GtkWindow();
$wnd->set_title('Goodbye world');
$wnd->connect_simple('destroy', array('gtk', 'main_quit'));

$lblHello = new GtkLabel();
$wnd->add($lblHello);

$wnd->show_all();
Gtk::main();