summaryrefslogtreecommitdiff
path: root/gtk2_ardour/add_route_dialog.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-08-22 17:28:08 +0200
committerRobin Gareus <robin@gareus.org>2017-08-22 17:28:08 +0200
commit62fc4621e576a9d6ffdc26ce97f2a6e2fb83fa92 (patch)
treebe4056c9830b1425e6b67c32bfb0d5ca6ac2620c /gtk2_ardour/add_route_dialog.cc
parent201d536ee90b4bd4af1cd8dc609fc6a15fe89a2a (diff)
RouteDialog: implicit "Add (+close)" on <enter> or double-click
Diffstat (limited to 'gtk2_ardour/add_route_dialog.cc')
-rw-r--r--gtk2_ardour/add_route_dialog.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk2_ardour/add_route_dialog.cc b/gtk2_ardour/add_route_dialog.cc
index 378395de3a..4ae7e8110a 100644
--- a/gtk2_ardour/add_route_dialog.cc
+++ b/gtk2_ardour/add_route_dialog.cc
@@ -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