RouteDialog: implicit "Add (+close)" on <enter> or double-click
authorRobin Gareus <robin@gareus.org>
Tue, 22 Aug 2017 15:28:08 +0000 (17:28 +0200)
committerRobin Gareus <robin@gareus.org>
Tue, 22 Aug 2017 15:28:08 +0000 (17:28 +0200)
gtk2_ardour/add_route_dialog.cc

index 378395de3a95eeb8baf7d2b6fc57fef75912f937..4ae7e8110ae5dece0be0fe1151ad9667955478fb 100644 (file)
@@ -260,6 +260,10 @@ AddRouteDialog::AddRouteDialog ()
        route_group_combo.set_row_separator_func (sigc::mem_fun (*this, &AddRouteDialog::route_separator));
        route_group_combo.signal_changed ().connect (sigc::mem_fun (*this, &AddRouteDialog::group_changed));
 
+       routes_spinner.signal_activate ().connect (sigc::bind (sigc::mem_fun (*this, &Gtk::Dialog::response), AddAndClose));
+       name_template_entry.signal_activate ().connect (sigc::bind (sigc::mem_fun (*this, &Gtk::Dialog::response), AddAndClose));
+       trk_template_chooser.signal_row_activated ().connect (sigc::hide (sigc::hide (sigc::bind (sigc::mem_fun (*this, &Gtk::Dialog::response), AddAndClose))));
+
        show_all_children ();
 
        /* track template info will be managed whenever