18 Nov '12, 3pm

Glib-Eventable

Glib-Eventable Posted by c00lryguy on November 18, 2012 — 0 comments glib-eventable is a helper gem for ruby-gnome2 applications. Instead of writing: class Window def initialize super signal_connect('destroy') { Gtk.main_quit } end end This allows you to write: class 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. Comments “ ” Post a Comment Comment abilities for non registered users are currently deactivated, pending time to add a proper CAPTCHA to solve the escalating spam problem. Sorry!

Full article: http://www.rubyflow.com/items/8508-glib-eventable

Tweets