-
- l = manage (new Label (_("Add to edit group:")));
- l->set_alignment (1, 0.5);
- table->attach (*l, 0, 1, 4, 5);
- table->attach (route_group_combo, 1, 2, 4, 5, FILL | EXPAND);
- table->attach (new_route_group_button, 2, 3, 4, 5);
-
- get_vbox()->pack_start (*table);
-
- get_vbox()->set_spacing (6);
- get_vbox()->set_border_width (6);
- get_vbox()->show_all ();
+
+ /* Group choice */
+
+ l = manage (new Label (_("Group:"), Gtk::ALIGN_LEFT, Gtk::ALIGN_CENTER, false));
+ table2->attach (*l, 1, 2, n, n + 1, Gtk::FILL, Gtk::EXPAND, 0, 0);
+ table2->attach (route_group_combo, 2, 3, n, n + 1, Gtk::FILL, Gtk::EXPAND | Gtk::FILL, 0, 0);
+ ++n;
+
+ options_box->pack_start (*table2, false, true);
+ vbox->pack_start (*options_box, false, true);
+
+ get_vbox()->pack_start (*vbox, false, false);
+
+ track_bus_combo.signal_changed().connect (sigc::mem_fun (*this, &AddRouteDialog::track_type_chosen));
+ channel_combo.signal_changed().connect (sigc::mem_fun (*this, &AddRouteDialog::maybe_update_name_template_entry));
+ channel_combo.set_row_separator_func (sigc::mem_fun (*this, &AddRouteDialog::channel_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));
+
+ show_all_children ();