class Gtk::ProgressBar

Public Class Methods

new() click to toggle source
# File lib/knj/jruby-gtk2/progressbar.rb, line 2
def initialize
  if Gtk.takeob
    @ob = Gtk.takeob
    Gtk.takeob = nil
  else
    splitted = self.class.to_s.split("::")
    javaname = "org.gnome." + splitted.first.downcase + "." + splitted.last
    @ob = Gtk.evalob(javaname).new
  end
end