Modified: MacRuby/trunk/lib/hotcocoa/mappings/toolbar_item.rb (605 => 606)
--- MacRuby/trunk/lib/hotcocoa/mappings/toolbar_item.rb 2008-09-19 01:17:43 UTC (rev 605)
+++ MacRuby/trunk/lib/hotcocoa/mappings/toolbar_item.rb 2008-09-19 01:39:37 UTC (rev 606)
@@ -13,7 +13,7 @@
if !options.has_key?(:label) && !options.has_key?(:identifier)
raise ArgumentError, ":identifier or :label required"
end
- label = options.delete(:label)
+ label = options[:label]
toolbar_item.initWithItemIdentifier(options.delete(:identifier) || label.tr(' ', '_'))
toolbar_item.paletteLabel = label if label
toolbar_item