Commit 91460e6

mo khan <mo@mokhan.ca>
2013-12-11 06:17:48
pass through the args from the event.
1 parent ab3d9be
Changed files (1)
lib
presentation
windows
lib/presentation/windows/window.rb
@@ -4,8 +4,8 @@ class Window < Gtk::Window
   end
 
   def on(event, &command)
-    self.signal_connect(event.to_s) do
-      command.call(self)
+    self.signal_connect(event.to_s) do |*args|
+      command.call(*args)
     end
   end
 end