#include "ardour/rc_configuration.h"
#include "ardour/session.h"
+#include "ardour/transport_master_manager.h"
#include "gtkmm2ext/utils.h"
#include "waveview/wave_view.h"
ARDOUR_UI::toggle_external_sync()
{
if (_session) {
- if (_session->config.get_video_pullup() != 0.0f) {
- if (Config->get_sync_source() == Engine) {
- MessageDialog msg (
- _("It is not possible to use JACK as the the sync source\n\
-when the pull up/down setting is non-zero."));
- msg.run ();
- return;
- }
+ if (_session->config.get_video_pullup() != 0.0f && (TransportMasterManager::instance().current()->type() == Engine)) {
+ MessageDialog msg (_("It is not possible to use JACK as the the sync source\n when the pull up/down setting is non-zero."));
+ msg.run ();
+ return;
}
ActionManager::toggle_config_state_foo ("Transport", "ToggleExternalSync", sigc::mem_fun (_session->config, &SessionConfiguration::set_external_sync), sigc::mem_fun (_session->config, &SessionConfiguration::get_external_sync));
if (!_session->config.get_external_sync()) {
sync_button.set_text (S_("SyncSource|Int."));
} else {
- sync_button.set_text (sync_source_to_string (Config->get_sync_source(), true));
+ sync_button.set_text (TransportMasterManager::instance().current()->display_name());
}
} else {
/* changing sync source without a session is unlikely/impossible , except during startup */
- sync_button.set_text (sync_source_to_string (Config->get_sync_source(), true));
+ sync_button.set_text (TransportMasterManager::instance().current()->display_name());
}
} else if (p == "follow-edits") {
VisibilityTracker::set_use_window_manager_visibility (UIConfiguration::instance().get_use_wm_visibility());
} else if (p == "action-table-columns") {
const uint32_t cols = UIConfiguration::instance().get_action_table_columns ();
- for (int i = 0; i < 9; ++i) {
+ for (int i = 0; i < MAX_LUA_ACTION_SCRIPTS; ++i) {
const int col = i / 2;
if (cols & (1<<col)) {
action_script_call_btn[i].show();
/* force a redraw */
gtk_rc_reset_styles (gtk_settings_get_default());
}
+ } else if (p == "boxy-buttons") {
+ bool boxy = UIConfiguration::instance().get_boxy_buttons();
+ if (ArdourButton::boxy_buttons () != boxy) {
+ ArdourButton::set_boxy_buttons (boxy);
+ /* force a redraw */
+ gtk_rc_reset_styles (gtk_settings_get_default());
+ }
} else if ( (p == "snap-to-region-sync") || (p == "snap-to-region-start") || (p == "snap-to-region-end") ) {
if (editor) editor->mark_region_boundary_cache_dirty();
}
act->set_sensitive (true);
} else {
/* can't sync to JACK if video pullup != 0.0 */
- if (Config->get_sync_source() == Engine) {
+ if (TransportMasterManager::instance().current()->type() == Engine) {
act->set_sensitive (false);
} else {
act->set_sensitive (true);