[macruby-changes] [606] MacRuby/trunk/lib/hotcocoa/mappings/toolbar_item.rb
source_changes at macosforge.org
source_changes at macosforge.org
Thu Sep 18 18:39:37 PDT 2008
Revision: 606
http://trac.macosforge.org/projects/ruby/changeset/606
Author: rich at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macruby-changes/attachments/20080918/8e65b887/attachment.html
More information about the macruby-changes
mailing list