2007-02-04 01:55:01 +00:00
|
|
|
module Msf
|
2007-05-12 16:10:22 +00:00
|
|
|
module Ui
|
|
|
|
module Gtk2
|
2007-02-04 01:55:01 +00:00
|
|
|
|
2007-06-07 21:34:04 +00:00
|
|
|
class MyAbout < Gtk::AboutDialog
|
|
|
|
|
2007-05-12 16:10:22 +00:00
|
|
|
include Msf::Ui::Gtk2::MyControls
|
2007-06-07 21:34:04 +00:00
|
|
|
|
2007-05-12 16:10:22 +00:00
|
|
|
Gtk::AboutDialog.set_email_hook {|about, link|
|
|
|
|
puts "Mail to #{link}"
|
|
|
|
}
|
|
|
|
Gtk::AboutDialog.set_url_hook {|about, link|
|
|
|
|
puts "Launch a browser to url #{link}"
|
|
|
|
}
|
2007-02-04 01:55:01 +00:00
|
|
|
|
2007-06-07 21:34:04 +00:00
|
|
|
def initialize(parent)
|
|
|
|
super()
|
|
|
|
self.name = Gtk2::TITLE
|
|
|
|
self.version = Gtk2::VERSION
|
|
|
|
self.copyright = Gtk2::COPYRIGHT
|
|
|
|
self.comments = Gtk2::DESCRIPTION
|
|
|
|
self.authors = Gtk2::AUTHORS
|
|
|
|
self.documenters = Gtk2::DOCUMENTERS
|
|
|
|
self.artists = Gtk2::ARTISTS
|
|
|
|
self.logo = driver.get_icon('msfwx.xpm')
|
|
|
|
self.website = Gtk2::WEBSITE_URL
|
|
|
|
self.license = File.read(File.join(Msf::Config.install_root, 'documentation', 'LICENSE'))
|
|
|
|
self.transient_for = parent
|
|
|
|
self.signal_connect('response') { self.destroy }
|
2007-05-12 16:10:22 +00:00
|
|
|
end
|
2007-06-07 21:34:04 +00:00
|
|
|
|
2007-05-12 16:10:22 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
2007-02-04 01:55:01 +00:00
|
|
|
end
|