RouteDialog: implicit "Add (+close)" on <enter> or double-click

This commit is contained in:
Robin Gareus 2017-08-22 17:28:08 +02:00
parent 201d536ee9
commit 62fc4621e5

View File

@ -260,6 +260,10 @@ AddRouteDialog::AddRouteDialog ()
route_group_combo.set_row_separator_func (sigc::mem_fun (*this, &AddRouteDialog::route_separator)); 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)); 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 (); show_all_children ();
/* track template info will be managed whenever /* track template info will be managed whenever