[macruby-changes] [365] MacRuby/trunk/sample-macruby/HotCocoa/layout_view.rb
source_changes at macosforge.org
source_changes at macosforge.org
Thu Jul 10 14:35:04 PDT 2008
Revision: 365
http://trac.macosforge.org/projects/ruby/changeset/365
Author: rich at infoether.com
Date: 2008-07-10 14:35:03 -0700 (Thu, 10 Jul 2008)
Log Message:
-----------
move default layout options to window construction
Modified Paths:
--------------
MacRuby/trunk/sample-macruby/HotCocoa/layout_view.rb
Modified: MacRuby/trunk/sample-macruby/HotCocoa/layout_view.rb
===================================================================
--- MacRuby/trunk/sample-macruby/HotCocoa/layout_view.rb 2008-07-10 21:34:19 UTC (rev 364)
+++ MacRuby/trunk/sample-macruby/HotCocoa/layout_view.rb 2008-07-10 21:35:03 UTC (rev 365)
@@ -53,9 +53,7 @@
window :frame => [100, 100, 500, 500], :title => "Packing View Madness" do |win|
views = []
- window :frame => [700, 100, 200, 500] do |pane|
-
- pane.view.default_layout.start = false
+ window :frame => [700, 100, 200, 500], :default_layout => {:start => false} do |pane|
pane.view << create_slider_layout('Spacing') { |x| win.view.spacing = x.to_i }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macruby-changes/attachments/20080710/86b132cc/attachment.html
More information about the macruby-changes
mailing list