Class: Smartdict::Gui::AboutWindow

Inherits:
Gtk::AboutDialog
  • Object
show all
Defined in:
lib/smartdict/gui/about_window.rb

Instance Method Summary collapse

Constructor Details

#initializeAboutWindow

Returns a new instance of AboutWindow.



2
3
4
5
6
7
8
9
10
# File 'lib/smartdict/gui/about_window.rb', line 2

def initialize
  super

  set_info
  set_license

  self.run
  self.destroy
end

Instance Method Details

#set_infoObject



12
13
14
15
16
17
18
19
20
21
22
# 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.         = Gdk::Pixbuf.new(Smartdict::Icons., 128, 128)
end

#set_licenseObject



24
25
26
27
# 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