Class: About::Versions

Inherits:
Gtk::HBox
  • Object
show all
Defined in:
lib/About.rb

Instance Method Summary collapse

Constructor Details

#initializeVersions



8
9
10
11
# File 'lib/About.rb', line 8

def initialize
  super(true,3)
  @progs=Hash.new
end

Instance Method Details

#add(text, ver) ⇒ Object



12
13
14
15
16
# File 'lib/About.rb', line 12

def add(text,ver)
  pack_start(@progs[text]=Gtk::VBox.new.pack_start(Gtk::Label.new(text),true,true,2)) unless @progs.has_key?(text)
  @progs[text].pack_start(Gtk::Label.new(ver.to_s),true,true,2)
  self
end