Sha256: d2200256d02c1c84923e3ee9cf10b1404e10a64fb704c0850d55dd11f672490c

Contents?: true

Size: 839 Bytes

Versions: 1

Compression:

Stored size: 839 Bytes

Contents

require 'Context/Gtk/Widget'
require 'jldrill/contexts/ShowAboutContext'
require 'jldrill/model/Config'
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
            iconFile = File.join(JLDrill::Config::DATA_DIR, "icon.svg")
            icon = Gdk::Pixbuf.new(iconFile)
            Gtk::AboutDialog.show(nil,
    			    :name => @about.name,
    			    :version => @about.version,
    			    :copyright => @about.copyright,
    			    :license => @about.license,
    			    :comments => @about.comments,
                    :website => @about.website,
                    :logo => icon,
    			    :authors => @about.authors)
        end
    end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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