Class: Smartdict::Gui::AboutWindow
- Inherits:
-
Gtk::AboutDialog
- Object
- Gtk::AboutDialog
- Smartdict::Gui::AboutWindow
- Defined in:
- lib/smartdict/gui/about_window.rb
Instance Method Summary collapse
-
#initialize ⇒ AboutWindow
constructor
A new instance of AboutWindow.
- #set_info ⇒ Object
- #set_license ⇒ Object
Constructor Details
#initialize ⇒ AboutWindow
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_info ⇒ Object
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. self. = [info.] 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 ⇒ Object
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 |