class Smartdict::Gui::AboutWindow
Public Class Methods
new()
click to toggle source
Calls superclass method
# File lib/smartdict/gui/about_window.rb, line 2 def initialize super set_info set_license self.run self.destroy end
Public Instance Methods
set_info()
click to toggle source
# File lib/smartdict/gui/about_window.rb, line 12 def set_info info = Smartdict.info self.name = "smartdict-gtk" self.program_name = "Smartdict" self.version = Smartdict::Gui::VERSION self.copyright = info.author self.authors = [info.author] self.comments = "Core v#{info.version}\nSimple dictionary" self.website = info.url self.logo = Gdk::Pixbuf.new(Smartdict::Icons.logo, 128, 128) end
set_license()
click to toggle source
# File lib/smartdict/gui/about_window.rb, line 24 def set_license self.license = 'Program is distributed under GNU General'\ 'Public License version 2.' end