- l->set_markup (string_compose ("<span size=\"x-small\">%1</span>", _("Out")));
- attach (*l, 2, 3, 2, 3);
- attach (*punch_end, 3, 4, 2, 3);
+ l->set_text (_("Length"));
+ l->set_alignment (1.0, 0.5);
+ l->set_name (X_("TimeInfoSelectionLabel"));
+ left.attach (*l, 0, 1, 3, 4, FILL);
+ left.attach (*selection_length, 1, 2, 3, 4);
+
+ punch_in_button.set_name ("punch button");
+ punch_out_button.set_name ("punch button");
+ punch_in_button.set_text (_("In"));
+ punch_out_button.set_text (_("Out"));
+
+ Glib::RefPtr<Action> act = ActionManager::get_action ("Transport", "TogglePunchIn");
+ punch_in_button.set_related_action (act);
+ act = ActionManager::get_action ("Transport", "TogglePunchOut");
+ punch_out_button.set_related_action (act);
+
+ Gtkmm2ext::UI::instance()->set_tip (punch_in_button, _("Start recording at auto-punch start"));
+ Gtkmm2ext::UI::instance()->set_tip (punch_out_button, _("Stop recording at auto-punch end"));
+
+ punch_title.set_name ("TimeInfoSelectionTitle");
+ right.attach (punch_title, 3, 4, 0, 1);
+ right.attach (punch_in_button, 2, 3, 1, 2, FILL, SHRINK);
+ right.attach (*punch_start, 3, 4, 1, 2);
+ right.attach (punch_out_button, 2, 3, 2, 3, FILL, SHRINK);
+ right.attach (*punch_end, 3, 4, 2, 3);