Class: GrayScott::Controller::AboutDialog

Inherits:
Object
  • Object
show all
Defined in:
lib/gray_scott/controller/aboutdialog.rb

Instance Method Summary collapse

Constructor Details

#initialize(resource_dir) ⇒ AboutDialog

Returns a new instance of AboutDialog.



6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/gray_scott/controller/aboutdialog.rb', line 6

def initialize(resource_dir)
  Gtk::AboutDialog.new.tap do |d|
    d.program_name = 'Gray-Scott'
    d.comments = 'Reaction diffusion system'
    d. = GdkPixbuf::Pixbuf.new(file: File.join(resource_dir, 'about_icon.png'))
    d.copyright = 'Copyright (C) kojix2'
    d.authors = ['kojix2']
    d.version = GrayScott::VERSION
    d.website = 'https://github.com/kojix2/Gray-Scott'
    d.website_label = 'Github kojix2/Gray-Scott'
    d.run
    d.destroy
  end
end