set_default_size( 300, 200); $window->set_title( _('window title')); $vbox = new GtkVBox(); $label = new GtkLabel( _('Translation test')); $button = new GtkButton( gettext('Close window')); $vbox->pack_start( $label); $vbox->pack_start( $button); $window->connect_simple('destroy', array('gtk', 'main_quit')); $button->connect_simple( 'clicked', array( 'gtk', 'main_quit')); $window->add( $vbox); $window->show_all(); gtk::main(); ?>