<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,14 +1,14 @@
 require('zerenity/entry')
 
-text = Zerenity::Entry(:text=&gt;&quot;Please enter your name&quot;, :ok_button =&gt; &quot;Go!&quot;, :cancel_button =&gt; &quot;Forget it&quot;)
-puts &quot;Hello #{text}&quot; if text
-puts &quot;You did not enter your name&quot; unless text
+name = Zerenity::Entry(:text=&gt;&quot;Please enter your name&quot;, :ok_button =&gt; &quot;Go!&quot;, :cancel_button =&gt; &quot;Forget it&quot;)
+puts &quot;Hello #{name}&quot; if name
+puts &quot;You did not enter your name&quot; unless name
 
 text = Zerenity::Entry(:text=&gt;&quot;Please enter your password&quot;,:password=&gt;true)
 puts &quot;Your password is: #{text}&quot; if text
 puts &quot;You did not enter your password&quot; unless text
 
-if (text = Zerenity::Entry(:text=&gt;&quot;Please enter your name. Click OK to close dialog.&quot;,:activatesDefault=&gt;false))
+if (text = Zerenity::Entry(:text=&gt;&quot;Please enter your name. Click OK to close dialog.&quot;,:activatesDefault=&gt;false, :string =&gt; name))
   puts &quot;Hello #{text}&quot;
 else
   puts &quot;You did not enter your name&quot;</diff>
      <filename>examples/example_entry.rb</filename>
    </modified>
    <modified>
      <diff>@@ -22,6 +22,7 @@ module Zerenity
       super(dialog,options)
       dialog.vbox.add(Gtk::Label.new(options[:text],false))
       entry = Gtk::Entry.new
+      entry.text = options[:string] if options[:string]
       entry.set_visibility(!options[:password])
       entry.set_activates_default(options[:activatesDefault])
       dialog.vbox.add(entry)</diff>
      <filename>lib/zerenity/entry.rb</filename>
    </modified>
    <modified>
      <diff>@@ -11,7 +11,12 @@ class TC_Entry &lt; Test::Unit::TestCase
     Zerenity::Entry.build(@dialog,@options)
     assert_equal(true,@dialog.vbox.children[1].visibility?)
   end
-
+  
+  def test_build_adds_default_string
+    Zerenity::Entry.build(@dialog,@options.merge(:string =&gt; &quot;hi&quot;))
+    assert_equal(&quot;hi&quot;, @dialog.vbox.children[1].text)
+  end
+  
   def test_build_password
     @options[:password] = true
     Zerenity::Entry.build(@dialog,@options)</diff>
      <filename>test/tc_entry.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>8d81c15d15352e5541f11fac3d2ea532af909d00</id>
    </parent>
  </parents>
  <author>
    <name>Daniel Lucraft</name>
    <email>dan@fluentradical.com</email>
  </author>
  <url>http://github.com/farrel/zerenity/commit/14036ea5f03a09adb38f444acac93e4eb553f2cb</url>
  <id>14036ea5f03a09adb38f444acac93e4eb553f2cb</id>
  <committed-date>2009-02-14T02:42:26-08:00</committed-date>
  <authored-date>2009-02-14T02:42:26-08:00</authored-date>
  <message>Entries have :string option that is the default string</message>
  <tree>27dfcf28c29afeed3aecd3f8605586fd458da2fc</tree>
  <committer>
    <name>Daniel Lucraft</name>
    <email>dan@fluentradical.com</email>
  </committer>
</commit>
