Sha256: be03bd0b5745117c5d0b5281cdc191ed2a47e33ee16259e7968d2c0d4b093bb0

Contents?: true

Size: 571 Bytes

Versions: 1

Compression:

Stored size: 571 Bytes

Contents

# encoding: utf-8
require 'gtk2'
require 'jldrill/model/Config'
require 'gtk2'

module JLDrill::Gtk
    class Icon
        attr_reader :icon
            
        def initialize()
            @icon = nil
            # GTK+ on windows doesn't have SVG, so if this fails read the PNG
            begin
                @icon = Gdk::Pixbuf.new(JLDrill::Config::resolveDataFile(JLDrill::Config::PNG_ICON_FILE))
            rescue
                @icon = Gdk::Pixbuf.new(JLDrill::Config::resolveDataFile(JLDrill::Config::PNG_ICON_FILE))
            end
        end
    end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jldrill-0.6.0.1 lib/jldrill/views/gtk/widgets/Icon.rb