editor->add_toplevel_controls (top_packer);
setup_transport();
+
build_menu_bar ();
setup_tooltips ();
/* 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->soloing() || _session->listening()) {
if (onoff) {
- solo_alert_button.set_state (STATE_ACTIVE);
+ solo_alert_button.set_active (true);
} else {
- solo_alert_button.set_state (STATE_NORMAL);
+ solo_alert_button.set_active (false);
}
} else {
solo_alert_button.set_active (false);
- solo_alert_button.set_state (STATE_NORMAL);
}
}
{
if (_session == 0 || !_session->config.get_external_sync()) {
/* internal sync */
- sync_button.unset_active_state ();
+ sync_button.set_active (false);
return;
}
/* not locked, so blink on and off according to the onoff argument */
if (onoff) {
- sync_button.set_active_state (Gtkmm2ext::Active); // "-active"
+ sync_button.set_active (true);
} else {
- sync_button.unset_active_state (); // normal
+ sync_button.set_active (false);
}
} else {
/* locked */
- sync_button.set_active_state (Gtkmm2ext::Active); // "-active"
+ sync_button.set_active (true);
}
}
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);
}
}