Sha256: cee9844d39f523326c901858a938d098936d6c4f84fe16571975687d8b0026d3

Contents?: true

Size: 814 Bytes

Versions: 1

Compression:

Stored size: 814 Bytes

Contents

# encoding: utf-8
require 'Context/Gtk/Widget'
require 'jldrill/contexts/ShowAboutContext'
require 'jldrill/model/Config'
require 'jldrill/views/gtk/widgets/Icon'
require 'gtk2'

module JLDrill::Gtk

	class AboutView < JLDrill::ShowAboutContext::AboutView
        	
		def initialize(context, about)
			super(context, about)
			@widget = nil
		end
		
		def getWidget
			@widget
		end

        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.authors)
        end
    end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jldrill-0.6.0.1 lib/jldrill/views/gtk/AboutView.rb