Use SSE/veclib/whatever for AudioBuffer::accumulate_from
[ardour.git] / libs / gtkmm2ext / prompter.cc
index c3a04f19a884dea9a92e04f0b9a6006ad74fe210..0ff97103380becd0b74a9191a55425b71fc6bbb5 100644 (file)
@@ -70,7 +70,7 @@ Prompter::init ()
 
        get_vbox()->pack_start (entryBox);
        show_all_children();
-       entry.signal_key_release_event().connect (mem_fun (*this, &Prompter::maybe_allow_response));
+       entry.signal_changed().connect (mem_fun (*this, &Prompter::on_entry_changed));
        entry.signal_activate().connect (bind (mem_fun (*this, &Prompter::response), Gtk::RESPONSE_ACCEPT));
 }      
 
@@ -86,26 +86,24 @@ Prompter::get_result (string &str, bool strip)
 {
        str = entry.get_text ();
        if (strip) {
-               strip_whitespace_edges (str);
+               PBD::strip_whitespace_edges (str);
        }
 }
 
-bool
-Prompter::maybe_allow_response (GdkEventKey* ev)
+void
+Prompter::on_entry_changed ()
 {
-        /* 
+       /* 
           This is set up so that entering text in the entry 
           field makes the RESPONSE_ACCEPT button active. 
           Of course if you haven't added a RESPONSE_ACCEPT 
           button, nothing will happen at all.
        */
 
-        if (entry.get_text() != "") {
+       if (entry.get_text() != "") {
          set_response_sensitive (Gtk::RESPONSE_ACCEPT, true);
          set_default_response (Gtk::RESPONSE_ACCEPT);
        } else {
          set_response_sensitive (Gtk::RESPONSE_ACCEPT, false);
        }
-       return true;
 }
-