- l = manage (new Label);
- l->set_alignment (1.0, 0.5);
- l->set_text (_("Out"));
- l->set_name (X_("TimeInfoPunchLabel"));
- right.attach (*l, 2, 3, 2, 3, FILL);
- right.attach (*punch_end, 3, 4, 2, 3);
-
- punch_in_button.set_name ("TimeInfoPunchButton");
- punch_out_button.set_name ("TimeInfoPunchButton");
- punch_button_box.set_homogeneous (true);
- punch_button_box.set_spacing (6);
- punch_button_box.set_border_width (2);
- punch_button_box.pack_start (punch_in_button, true, true);
- punch_button_box.pack_start (punch_out_button, true, true);
-
- ActionManager::get_action ("Transport", "TogglePunchIn")->connect_proxy (punch_in_button);
- ActionManager::get_action ("Transport", "TogglePunchOut")->connect_proxy (punch_out_button);
+ 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);