[macruby-changes] [710] MacRuby/trunk/lib/hotcocoa/mappings/gradient.rb
source_changes at macosforge.org
source_changes at macosforge.org
Thu Nov 6 07:31:55 PST 2008
Revision: 710
http://trac.macosforge.org/projects/ruby/changeset/710
Author: rich at infoether.com
Date: 2008-11-06 07:31:54 -0800 (Thu, 06 Nov 2008)
Log Message:
-----------
fix colors with no values
Modified Paths:
--------------
MacRuby/trunk/lib/hotcocoa/mappings/gradient.rb
Modified: MacRuby/trunk/lib/hotcocoa/mappings/gradient.rb
===================================================================
--- MacRuby/trunk/lib/hotcocoa/mappings/gradient.rb 2008-11-06 15:31:34 UTC (rev 709)
+++ MacRuby/trunk/lib/hotcocoa/mappings/gradient.rb 2008-11-06 15:31:54 UTC (rev 710)
@@ -5,7 +5,7 @@
if options[:locations]
NSGradient.alloc.initWithColors options.delete(:colors), atLocations:options.delete(:locations), colorSpace:(options.delete(:color_space) || NSColorSpace.deviceRGBColorSpace)
else
- NSGradient.alloc.initWithColors()
+ NSGradient.alloc.initWithColors(options.delete(:colors))
end
elsif options[:start] && option[:end]
NSGradient.alloc.initWithStartingColor options.delete(:start), endingColor:options.delete(:end)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20081106/bde5cce6/attachment.html>
More information about the macruby-changes
mailing list