Class: Gtk::Application

Inherits:
Gio::Application
  • Object
show all
Defined in:
lib/rabbit/gtk.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, flags) ⇒ Application

Returns a new instance of Application.



118
119
120
121
122
123
124
# File 'lib/rabbit/gtk.rb', line 118

def initialize(id, flags)
  super
  signal_connect_after("activate") do
    Gtk.main unless @windows.empty?
  end
  @windows = []
end

Instance Attribute Details

#windowsObject (readonly)

Returns the value of attribute windows.



117
118
119
# File 'lib/rabbit/gtk.rb', line 117

def windows
  @windows
end