<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -6,9 +6,7 @@ module Anvil
         attr_accessor :title
         
         def initialize(name)
-          @real_object = ::Qt::Label.new(&quot;Test&quot;, nil)
-          @real_object.resize(150, 30)
-          @real_object.show
+          @real_object = ::Qt::Label.new(&quot;Hello World!&quot;, nil)
         end
         
         def title=(title)
@@ -22,6 +20,10 @@ module Anvil
           @real_object.setText(text)
         end
         
+        def show
+          @real_object.show
+        end
+        
         def method_missing(method, *args)
           @real_object.send(method, *args)
         end</diff>
      <filename>anvil-gui-qt/lib/anvil-gui-qt/window.rb</filename>
    </modified>
    <modified>
      <diff>@@ -7,12 +7,13 @@ module Anvil
     class &lt;&lt; self
       def window(name, options = {}, &amp;block)
         window = Window.new name
-        window.instance_eval { block } if block
+        yield window if block_given?
       end
       
       def dsl(code_string)
         self.instance_eval(code_string) if code_string
       end
+      
     end
   end
 end
\ No newline at end of file</diff>
      <filename>anvil-gui/lib/anvil-gui.rb</filename>
    </modified>
    <modified>
      <diff>@@ -6,6 +6,7 @@ module Anvil
       def initialize(name)
         @toolkit = Toolkit
         @name = name
+        @properties = {}
         @toolkit_object = create
         puts &quot;#{@toolkit_object.inspect} Created&quot;
       end
@@ -15,20 +16,22 @@ module Anvil
       end
       
       def title=(title)
-        @properties[:title] = title
+        # @properties[:title] = title
         @toolkit_object.title=(title)
       end
       
-      def size=(width, height)
-        puts &quot;size&quot;
-        @properties[:size] = { :width =&gt; width, :height =&gt; height }
-        @toolkit_object.size = width, height
+      def size=(width=640, height=480)
+        if width.is_a?(Array)
+          height = width[1]
+          width = width[0]
+        end
+        
+        # @properties[:size] = { :width =&gt; width, :height =&gt; height }
+        @toolkit_object.resize(width, height)
       end
       
       def method_missing(method, *args)
-        puts &quot;test&quot;
-        puts &quot;#{method}&quot;
-        @properties[method] = *args
+        # @properties[method] = *args
         @toolkit_object.send(method, *args)
       end
       </diff>
      <filename>anvil-gui/lib/anvil-gui/window.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,15 +2,20 @@ require File.join(File.dirname(__FILE__), &quot;..&quot;, &quot;spec_helper&quot;)
 
 describe &quot;The DSL for&quot; do
   before do
+    @window = mock(Anvil::GUI::Window)
     Anvil::GUI::Toolkit.register!(&quot;Fox&quot;)
-    Anvil::GUI::Fox::Window.should_receive(:new).with(:test_window)
+    Anvil::GUI::Fox::Window.should_receive(:new).with(:test_window).and_return(@window)
   end
   
   describe Anvil::GUI, &quot;window&quot; do      
     it &quot;should be friggin cool&quot; do
-      Anvil::GUI.window :test_window do
-        title = &quot;Hello World&quot;
-        size = 300, 400
+      @window.should_receive(:title=).with(&quot;Hello World&quot;)
+      @window.should_receive(:resize).with(300, 400)
+      @window.should_receive(:show)
+      Anvil::GUI.window :test_window do |w|
+        w.title = &quot;Hello World&quot;
+        w.size = 300, 400
+        w.show
       end
     end
   end</diff>
      <filename>anvil-gui/spec/anvil-gui/window_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,5 @@
-window :hello_world do
-  title = &quot;Hello World&quot;
-  size = 300, 400
-  text = &quot;Hello World&quot;
+window :hello_world do |w|
+  w.size = 400, 200
+  w.text = &quot;Hello World!!!!&quot;
+  w.show
 end
\ No newline at end of file</diff>
      <filename>demos/hello_world/app/views/hello_world/show.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>da03e0cd4687ffae59df31c0d10499f154a7beed</id>
    </parent>
  </parents>
  <author>
    <name>Lance Carlson</name>
    <email>lancecarlson@gmail.com</email>
  </author>
  <url>http://github.com/lancecarlson/anvil/commit/d490a846fafc1f96f5ed0213e19b345d54f1fc85</url>
  <id>d490a846fafc1f96f5ed0213e19b345d54f1fc85</id>
  <committed-date>2008-08-17T04:36:47-07:00</committed-date>
  <authored-date>2008-08-17T04:36:47-07:00</authored-date>
  <message>Up to speed for demo</message>
  <tree>7df7660c1d641ba891d582641dd4ed0178208f3e</tree>
  <committer>
    <name>Lance Carlson</name>
    <email>lancecarlson@gmail.com</email>
  </committer>
</commit>
