lib/rabbit/stock.rb in rabbit-2.1.6 vs lib/rabbit/stock.rb in rabbit-2.1.7
- old
+ new
@@ -4,25 +4,25 @@
module Rabbit
module Stock
include GetText
- RABBIT = :rabbit_rabbit
+ RABBIT = "rabbit-rabbit"
@@loaded = false
module_function
def init(canvas)
return if @@loaded
@@loaded = true
- Gtk::Stock.add(RABBIT, N_("Rabbit"))
+ Gtk::Stock.add(RABBIT.to_sym, N_("Rabbit"))
begin
image_theme = Theme::Searcher.find_theme("rabbit-images", true)
file = Theme::Searcher.find_file("lavie-icon.png", [image_theme])
loader = ImageLoader.new(file)
loader.resize(32, 32)
factory = Gtk::IconFactory.new
- factory.add(RABBIT.to_s, Gtk::IconSet.new(loader.pixbuf))
+ factory.add(RABBIT, Gtk::IconSet.new(loader.pixbuf))
factory.add_default
rescue LoadError
canvas.logger.warn($!)
end
end