#!/usr/bin/ruby

#
## http://rosettacode.org/wiki/Hello_world/Graphical
#

require('Gtk2') -> init;
 
var gtk2   = 'Gtk2'.to_caller;
var window = 'Gtk2::Window'.to_caller.new;
var label  = 'Gtk2::Label'.to_caller.new('Goodbye, World!');
 
window.set_title('Goodbye, World!');
window.signal_connect(destroy => func(_) { gtk2.main_quit });
 
window.add(label);
window.show_all;
 
gtk2.main;