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-07-02 15:57:36 +00:00
|
|
|
###
|
|
|
|
#
|
|
|
|
# This class provides the about button
|
|
|
|
#
|
|
|
|
###
|
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-07-02 15:57:36 +00:00
|
|
|
Gtk::AboutDialog.set_email_hook do |about, link|
|
2007-12-31 02:03:13 +00:00
|
|
|
Rex::Compat.open_email(link)
|
2007-07-02 15:57:36 +00:00
|
|
|
end
|
2007-12-31 01:19:49 +00:00
|
|
|
|
2007-07-02 15:57:36 +00:00
|
|
|
Gtk::AboutDialog.set_url_hook do |about, link|
|
2007-12-31 01:19:49 +00:00
|
|
|
Rex::Compat.open_browser(link)
|
2007-07-02 15:57:36 +00:00
|
|
|
end
|
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
|
2007-12-31 01:09:34 +00:00
|
|
|
self.logo = driver.get_icon('splash.png')
|
2007-06-07 21:34:04 +00:00
|
|
|
self.website = Gtk2::WEBSITE_URL
|
2008-10-06 10:50:57 +00:00
|
|
|
self.license = File.read(File.join(Msf::Config.install_root, 'README'))
|
2007-06-07 21:34:04 +00:00
|
|
|
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
|