Class: AboutDialog
- Inherits:
-
Object
- Object
- AboutDialog
- Includes:
- BasicLogging, Translating
- Defined in:
- lib/gui/AboutDialog.rb
Constant Summary collapse
- CLS =
FED UP WITH GTK !!
-4
- @@prog_info =
CremeFraiche::prog_info
- @@info =
prevent repeated appending of the comments
Translating::trl('running with Ruby') << ' ' << RUBY_VERSION << ' (' << RUBY_RELEASE_DATE << ') '
- @@License_File =
GD.dup << '../doc/license.txt'
Constants included from BasicLogging
BasicLogging::DEBUG, BasicLogging::ERROR, BasicLogging::FATAL, BasicLogging::INFO, BasicLogging::Levels, BasicLogging::UNKNOWN, BasicLogging::WARN
Instance Attribute Summary
Attributes included from BasicLogging
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ AboutDialog
constructor
A new instance of AboutDialog.
Methods included from BasicLogging
is_muted?, #log, mute, #set_level, #set_target
Methods included from Translating
Constructor Details
#initialize(options = {}) ⇒ AboutDialog
Returns a new instance of AboutDialog.
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
# File 'lib/gui/AboutDialog.rb', line 40 def initialize( = {}) @adialog = Gtk::AboutDialog.new @adialog.name = App_name @adialog.title = App_name @adialog.set_program_name App_name @adialog.version = VERSION @adialog.copyright = "© #{YEARS} #{Author} #{Author_mail}" @adialog.website = "#{Web_page}" @adialog.comments = @@info @adialog.license = LICENSE_TEXT @adialog.logo = GdkPixbuf::Pixbuf.new(:file => GD + "icon.xpm") @adialog.signal_connect('response') do |dlg, resp| debug("response %i emitted" %resp) # I am fed up with the Gtk docuentation @adialog.close if(CLS == resp) end if( && .keys.include?(:on_destroy)) @adialog.signal_connect('destroy') {[:on_destroy].call() } end @adialog.show end |