act = ActionManager::get_action (X_("Transport"), X_("ToggleExternalSync"));
sync_button.set_related_action (act);
+ join_play_range_button.signal_clicked.connect (sigc::mem_fun (*this, &ARDOUR_UI::join_play_range_clicked));
+
/* clocks, etc. */
- ARDOUR_UI::Clock.connect (sigc::bind (sigc::mem_fun (primary_clock, &AudioClock::set), 'p'));
- ARDOUR_UI::Clock.connect (sigc::bind (sigc::mem_fun (secondary_clock, &AudioClock::set), 's'));
+ ARDOUR_UI::Clock.connect (sigc::mem_fun (primary_clock, &AudioClock::set));
+ ARDOUR_UI::Clock.connect (sigc::mem_fun (secondary_clock, &AudioClock::set));
primary_clock->ValueChanged.connect (sigc::mem_fun(*this, &ARDOUR_UI::primary_clock_value_changed));
secondary_clock->ValueChanged.connect (sigc::mem_fun(*this, &ARDOUR_UI::secondary_clock_value_changed));
tbox->pack_start (rec_button, false, false, 6);
HBox* clock_box = manage (new HBox);
+
primary_clock->set_border_width (2);
clock_box->pack_start (*primary_clock, false, false);
if (!ARDOUR::Profile->get_small_screen()) {
clock_box->pack_start (*secondary_clock, false, false);
}
-
shuttle_box = new ShuttleControl;
shuttle_box->show ();
void
ARDOUR_UI::_auditioning_changed (bool onoff)
{
- if (auditioning_alert_button.get_active() != onoff) {
- auditioning_alert_button.set_active (onoff);
- set_transport_sensitivity (!onoff);
- }
+ auditioning_alert_button.set_active (onoff);
+ set_transport_sensitivity (!onoff);
}
void
if (_session->is_auditioning()) {
if (onoff) {
- auditioning_alert_button.set_active_state (Gtkmm2ext::Active);
+ auditioning_alert_button.set_active (true);
} else {
- auditioning_alert_button.unset_active_state();
+ auditioning_alert_button.set_active (false);
}
} else {
- auditioning_alert_button.unset_active_state ();
+ auditioning_alert_button.set_active (false);
}
}
rc_option_editor->set_current_page (_("Misc"));
return true;
}
+
+void
+ARDOUR_UI::join_play_range_clicked ()
+{
+ join_play_range_button.set_active (!join_play_range_button.get_active());
+}