<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>lib/gutkumber/finders.rb</filename>
    </added>
    <added>
      <filename>lib/gutkumber/steps/window_steps.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,7 +1,11 @@
 
+$:.push(File.expand_path(File.dirname(__FILE__)))
+
 $gutkumber = true
 
+require 'rubygems'
 require 'gtk2'
+require 'spec/expectations'
 
 require 'cucumber/formatter/progress'
 require 'cucumber/formatter/pretty'
@@ -10,6 +14,7 @@ require 'gutkumber/formatter/gtk_formatter'
 require 'gutkumber/formatter/gtk_progress_formatter'
 require 'gutkumber/features_helper'
 require 'gutkumber/gtk/dialog'
+require 'gutkumber/finders'
 
 Dir[File.dirname(__FILE__) + &quot;/gutkumber/steps/*_steps.rb&quot;].each {|fn| require fn }
 
@@ -18,3 +23,5 @@ module Gutkumber
     true
   end
 end
+
+World(FeaturesHelper)</diff>
      <filename>lib/gutkumber.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,53 +1,4 @@
 
-module Gutkumber
-  TICK_SIZE = ENV[&quot;GUTKUMBER_TICK_SIZE&quot;] || 0.3
-  
-  def self.find_gtk_window(title)
-    Gtk::Window.toplevels.detect do |window| 
-      window.title =~ Regexp.new(Regexp.escape(title))
-    end
-  end
-  
-  def self.dialogs
-    Gtk::Window.toplevels.select do |window|
-      window.class.ancestors.include?(Gtk::Dialog)
-    end
-  end
-  
-  def self.find_all_gtk_windows
-    Gtk::Window.toplevels
-  end
-  
-  def self.window_buttons(window)
-    buttons = window.child_widgets_with_class(Gtk::Button)
-    buttons.map {|button| button.child_widgets_with_class(Gtk::Label).map{|la| la.text}.join(&quot; &quot;) }
-  end
-  
-  def self.label_texts(widget)
-    widget.child_widgets_with_class(Gtk::Label).map do |label|
-      label.text
-    end
-  end
-  
-  def self.find_button(window, button_label)
-    buttons = window.child_widgets_with_class(Gtk::Button)
-    buttons.each do |button|
-      label = button.child_widgets_with_class(Gtk::Label).map{|la| la.text}.join(&quot; &quot;)
-      return button if label =~ Regexp.new(Regexp.escape(button_label))
-    end
-    nil
-  end
-  
-  def self.tick
-    Gtk.main_iteration while Gtk.events_pending?
-  end
-  
-  def self.wait_tick
-    tick
-    sleep TICK_SIZE
-  end
-end
-
 When /I click the button #{FeaturesHelper::STRING_RE} in the dialog #{FeaturesHelper::STRING_RE}/ do |button, dialog|
   button, dialog = parse_string(button), parse_string(dialog)
   dialog = Gutkumber.find_gtk_window(dialog)</diff>
      <filename>lib/gutkumber/steps/gtk_steps.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>c53631c7cf17b8a86c2ba748c8666d4ed01f0021</id>
    </parent>
  </parents>
  <author>
    <name>Daniel Lucraft</name>
    <email>dan@fluentradical.com</email>
  </author>
  <url>http://github.com/danlucraft/gutkumber/commit/6a3465e1326dca31d5b008db5fb9187528ea54c8</url>
  <id>6a3465e1326dca31d5b008db5fb9187528ea54c8</id>
  <committed-date>2009-05-31T02:38:22-07:00</committed-date>
  <authored-date>2009-05-31T02:38:22-07:00</authored-date>
  <message>Moved stuff around</message>
  <tree>3127e1131c9cdbfedc92f7f818391cdb30ea253d</tree>
  <committer>
    <name>Daniel Lucraft</name>
    <email>dan@fluentradical.com</email>
  </committer>
</commit>
