Class: JLDrill::Gtk::AboutView
- Inherits:
-
ShowAboutContext::AboutView
- Object
- Context::View
- ShowAboutContext::AboutView
- JLDrill::Gtk::AboutView
- Defined in:
- lib/jldrill/views/gtk/AboutView.rb
Instance Attribute Summary
Attributes inherited from Context::View
Instance Method Summary collapse
- #getWidget ⇒ Object
-
#initialize(context, about) ⇒ AboutView
constructor
A new instance of AboutView.
- #run ⇒ Object
Methods inherited from Context::View
#addView, #removeView, #removingViewFrom, #viewAddedTo
Constructor Details
#initialize(context, about) ⇒ AboutView
Returns a new instance of AboutView.
12 13 14 15 |
# File 'lib/jldrill/views/gtk/AboutView.rb', line 12 def initialize(context, about) super(context, about) @widget = nil end |
Instance Method Details
#getWidget ⇒ Object
17 18 19 |
# File 'lib/jldrill/views/gtk/AboutView.rb', line 17 def getWidget @widget end |
#run ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/jldrill/views/gtk/AboutView.rb', line 21 def run icon = Icon.new Gtk::AboutDialog.show(nil, :name => @about.name, :version => @about.version, :copyright => @about.copyright, :license => @about.license, :comments => @about.comments, :website => @about.website, :logo => icon.icon, :authors => @about.) end |