lib/jldrill/views/gtk/AboutView.rb in jldrill-0.5.1.7 vs lib/jldrill/views/gtk/AboutView.rb in jldrill-0.6.0.1
- old
+ new
@@ -1,8 +1,10 @@
+# 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
@@ -15,19 +17,18 @@
def getWidget
@widget
end
def run
- iconFile = File.join(JLDrill::Config::DATA_DIR, "icon.svg")
- icon = Gdk::Pixbuf.new(iconFile)
+ 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,
+ :logo => icon.icon,
:authors => @about.authors)
end
end
end