+ if (strip) {
+ PBD::strip_whitespace_edges (str);
+ }
+}
+
+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() != "") {
+ set_response_sensitive (Gtk::RESPONSE_ACCEPT, true);
+ set_default_response (Gtk::RESPONSE_ACCEPT);
+ } else {
+ set_response_sensitive (Gtk::RESPONSE_ACCEPT, false);
+ }