Class: Gtk::Application

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

Instance Method Summary collapse

Constructor Details

#initialize(id, flags) ⇒ Application

Returns a new instance of Application.



103
104
105
106
107
108
# File 'lib/rabbit/gtk.rb', line 103

def initialize(id, flags)
  super
  signal_connect_after("activate") do
    Gtk.main if ApplicationWindow.n_instances > 0
  end
end