# File lib/foxtails/FTTextField.rb, line 17
    def connect_to_target
      connect(SEL_FOCUSOUT) do
        set_target_state(get_value()) unless @dynamic
      end

      connect(SEL_CHANGED) do
        set_target_state(get_value()) if @dynamic
      end

      when_target_state CHANGES do |value|
        str = @display_format ?
          @display_format % value :
          display(value)
        setText(str)
      end
    end