Revision: 606 http://trac.macosforge.org/projects/ruby/changeset/606 Author: rich@infoether.com Date: 2008-09-18 18:39:37 -0700 (Thu, 18 Sep 2008) Log Message: ----------- allow label= to be called Modified Paths: -------------- MacRuby/trunk/lib/hotcocoa/mappings/toolbar_item.rb Modified: MacRuby/trunk/lib/hotcocoa/mappings/toolbar_item.rb =================================================================== --- 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