#!/usr/bin/ruby

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

Perl.eval("use Gtk3 '-init'")
 
var gtk3   = 'Gtk3'.to_caller;
var window = 'Gtk3::Window'.to_caller.new;
var label  = 'Gtk3::Label'.to_caller.new('Goodbye, World!');
 
window.set_title('Goodbye, World!');
window.signal_connect(destroy => func(_) { gtk3.main_quit });
 
window.add(label);
window.show_all;
 
gtk3.main;
