remove timebar canvas item from markers
[ardour.git] / gtk2_ardour / ambiguous_file_dialog.cc
index 7d57c676603c2d6156705ced51b2b45f51331c27..be4bdc2dc1a5505b53982a89d456d559cfde1c9c 100644 (file)
@@ -32,12 +32,13 @@ AmbiguousFileDialog::AmbiguousFileDialog (const string& file, const vector<strin
        get_vbox()->set_spacing (6);
 
        Label* l = manage (new Label);
-       l->set_markup (string_compose (_("Ardour has found the file <i>%1</i> in the following places:\n\n"), file));
+       l->set_markup (string_compose (_("%1 has found the file <i>%2</i> in the following places:\n\n"), PROGRAM_NAME, file));
        get_vbox()->pack_start (*l);
 
        for (vector<string>::const_iterator i = paths.begin(); i != paths.end(); ++i) {
                _radio_buttons.push_back (manage (new RadioButton (_group, *i)));
                get_vbox()->pack_start (*_radio_buttons.back ());
+               _radio_buttons.back()->signal_button_press_event().connect (sigc::mem_fun (*this, &AmbiguousFileDialog::rb_button_press), false);
        }
 
        get_vbox()->pack_start (*manage (new Label (_("\n\nPlease select the path that you want to get the file from."))));
@@ -48,6 +49,15 @@ AmbiguousFileDialog::AmbiguousFileDialog (const string& file, const vector<strin
        show_all ();
 }
 
+bool
+AmbiguousFileDialog::rb_button_press (GdkEventButton* ev)
+{
+       if (ev->type == GDK_2BUTTON_PRESS) {
+               response (RESPONSE_OK);
+       }
+       return false;
+}
+
 int
 AmbiguousFileDialog::get_which () const
 {