Sha256: b09b4b86a544a2727a3fb060f83e14b74d1c052d753fcc2ae4af3c121bd517e5

Contents?: true

Size: 540 Bytes

Versions: 1

Compression:

Stored size: 540 Bytes

Contents

# encoding: utf-8
require 'Context/Gtk/Widget'
require 'gtk2'

module JLDrill::Gtk
    class ProgressBar < Gtk::HBox
		include Context::Gtk::Widget
        
        attr_reader :progress
		
        def initialize(view)
            super
            @view = view
            
            @progress = Gtk::ProgressBar.new
            self.add(Gtk::Label.new("Loading " + @view.filename + ":"))
            self.add(@progress)
        end
        
        def update(fraction)
            @progress.fraction = fraction
        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/ProgressBar.rb