+Prompter::on_show ()
+{
+ /* don't connect to signals till shown, so that we don't change the
+ response sensitivity etc. when the setup of the dialog sets the text.
+ */
+
+ if (first_show) {
+ entry.signal_changed().connect (mem_fun (*this, &Prompter::on_entry_changed));
+ entry.signal_activate().connect (mem_fun (*this, &Prompter::entry_activated));
+ can_accept_from_entry = !entry.get_text().empty();
+ first_show = false;
+ }
+
+ Dialog::on_show ();
+}
+
+void
+Prompter::change_labels (string /*okstr*/, string /*cancelstr*/)