From f99d05742134f5a05f950f65b0c44a0d8539a862 Mon Sep 17 00:00:00 2001 From: Valeriy Kamyshniy Date: Tue, 13 May 2014 06:43:12 -0500 Subject: [PATCH] removing button for synch mode [git-p4: depot-paths = "//Abdaw/dev_main/tracks/": change = 459984] --- gtk2_ardour/ardour_ui.h | 4 ++-- gtk2_ardour/ardour_ui2.cc | 14 +++++++------- gtk2_ardour/ardour_ui_options.cc | 8 ++++---- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/gtk2_ardour/ardour_ui.h b/gtk2_ardour/ardour_ui.h index 6a30231d42..3912470efe 100644 --- a/gtk2_ardour/ardour_ui.h +++ b/gtk2_ardour/ardour_ui.h @@ -448,8 +448,8 @@ class ARDOUR_UI : public Gtkmm2ext::UI, public ARDOUR::SessionHandlePtr ArdourButton follow_edits_button; ArdourButton auto_input_button; ArdourButton click_button; - ArdourButton sync_button; - + // NO NEED TO HAVE IT: ArdourButton sync_button; + ArdourButton auditioning_alert_button; ArdourButton solo_alert_button; ArdourButton feedback_alert_button; diff --git a/gtk2_ardour/ardour_ui2.cc b/gtk2_ardour/ardour_ui2.cc index e9efb1d03a..8dee90182d 100644 --- a/gtk2_ardour/ardour_ui2.cc +++ b/gtk2_ardour/ardour_ui2.cc @@ -262,7 +262,7 @@ ARDOUR_UI::setup_transport () /* these have to provide a clear indication of active state */ click_button.set_name ("transport button"); - sync_button.set_name ("transport active option button"); + // NO NEED TO HAVE IT: sync_button.set_name ("transport active option button"); stop_button.set_active (true); @@ -295,7 +295,7 @@ ARDOUR_UI::setup_transport () act = ActionManager::get_action (X_("MIDI"), X_("panic")); midi_panic_button.set_related_action (act); act = ActionManager::get_action (X_("Transport"), X_("ToggleExternalSync")); - sync_button.set_related_action (act); + // NO NEED TO HAVE IT: sync_button.set_related_action (act); /* clocks, etc. */ @@ -418,7 +418,7 @@ ARDOUR_UI::setup_transport () VBox* auto_box = manage (new VBox); auto_box->set_homogeneous (true); auto_box->set_spacing (2); - auto_box->pack_start (sync_button, false, false); + // NO NEED TO HAVE IT: auto_box->pack_start (sync_button, false, false); if (!ARDOUR::Profile->get_trx()) { auto_box->pack_start (follow_edits_button, false, false); auto_box->pack_start (auto_return_button, false, false); @@ -548,7 +548,7 @@ ARDOUR_UI::sync_blink (bool onoff) { if (_session == 0 || !_session->config.get_external_sync()) { /* internal sync */ - sync_button.set_active (false); + // NO NEED TO HAVE IT: sync_button.set_active (false); return; } @@ -556,13 +556,13 @@ ARDOUR_UI::sync_blink (bool onoff) /* not locked, so blink on and off according to the onoff argument */ if (onoff) { - sync_button.set_active (true); + // NO NEED TO HAVE IT: sync_button.set_active (true); } else { - sync_button.set_active (false); + // NO NEED TO HAVE IT: sync_button.set_active (false); } } else { /* locked */ - sync_button.set_active (true); + // NO NEED TO HAVE IT: sync_button.set_active (true); } } diff --git a/gtk2_ardour/ardour_ui_options.cc b/gtk2_ardour/ardour_ui_options.cc index e1435f7a8d..a49b113531 100644 --- a/gtk2_ardour/ardour_ui_options.cc +++ b/gtk2_ardour/ardour_ui_options.cc @@ -314,12 +314,12 @@ ARDOUR_UI::parameter_changed (std::string p) ActionManager::map_some_state ("Transport", "ToggleExternalSync", sigc::mem_fun (_session->config, &SessionConfiguration::get_external_sync)); if (!_session->config.get_external_sync()) { - sync_button.set_text (_("Internal")); + // NO NEED TO HAVE IT: sync_button.set_text (_("Internal")); ActionManager::get_action ("Transport", "ToggleAutoPlay")->set_sensitive (true); ActionManager::get_action ("Transport", "ToggleAutoReturn")->set_sensitive (true); ActionManager::get_action ("Transport", "ToggleFollowEdits")->set_sensitive (true); } else { - sync_button.set_text (sync_source_to_string (Config->get_sync_source(), true)); + // NO NEED TO HAVE IT: sync_button.set_text (sync_source_to_string (Config->get_sync_source(), true)); /* XXX need to make auto-play is off as well as insensitive */ ActionManager::get_action ("Transport", "ToggleAutoPlay")->set_sensitive (false); ActionManager::get_action ("Transport", "ToggleAutoReturn")->set_sensitive (false); @@ -474,9 +474,9 @@ ARDOUR_UI::synchronize_sync_source_and_video_pullup () just_label: if (act->get_sensitive ()) { - set_tip (sync_button, _("Enable/Disable external positional sync")); + // NO NEED TO HAVE IT: set_tip (sync_button, _("Enable/Disable external positional sync")); } else { - set_tip (sync_button, _("Sync to JACK is not possible: video pull up/down is set")); + // NO NEED TO HAVE IT: set_tip (sync_button, _("Sync to JACK is not possible: video pull up/down is set")); } }