Class: ClockIndicator::Main

Inherits:
Object
  • Object
show all
Defined in:
lib/clock_indicator/main.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.runObject



3
4
5
# File 'lib/clock_indicator/main.rb', line 3

def self.run
  new.run
end

Instance Method Details

#runObject



7
8
9
10
11
12
# File 'lib/clock_indicator/main.rb', line 7

def run
  Gtk.init
  ClockIndicator::Clock.new
  trap('SIGINT') { Gtk.main_quit }
  Gtk.main
end