Glib-Eventable
glib-eventable is a helper gem for ruby-gnome2 applications.
Instead of writing:
class Window < Gtk::Window
def initialize
super
signal_connect('destroy') { Gtk.main_quit }
end
end
This allows you to write:
class Window < Gtk::Window
event destroy: :on_destroy
def on_destroy
Gtk.main_quit
end
end
This allows you to create subclasses of Gtk
objects in a more OOP style.
Post a comment