Class: Gtk::ApplicationWindow
- Inherits:
-
Object
- Object
- Gtk::ApplicationWindow
- Defined in:
- lib/rabbit/gtk.rb
Class Method Summary collapse
Class Method Details
.new(application) ⇒ Object
131 132 133 134 135 136 137 138 139 140 |
# File 'lib/rabbit/gtk.rb', line 131 def new(application) window = Window.new application.windows << window window.signal_connect("destroy") do windows = application.windows windows.delete(window) Gtk.main_quit if windows.empty? end window end |