when doing a pure copy of a region, which resets the position, reset the position...
[ardour.git] / gtk2_ardour / ardour_ui2.cc
index 41f56007680754c69ebcf0a2ef74d8740bd2d7fa..6b637e214ec9ce13f72c79dcd49240a7086e1b96 100644 (file)
@@ -295,10 +295,12 @@ ARDOUR_UI::setup_transport ()
        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));
@@ -371,6 +373,7 @@ ARDOUR_UI::setup_transport ()
        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()) {
@@ -378,7 +381,6 @@ ARDOUR_UI::setup_transport ()
                clock_box->pack_start (*secondary_clock, false, false);
        }
 
-
        shuttle_box = new ShuttleControl;
        shuttle_box->show ();
 
@@ -462,10 +464,8 @@ ARDOUR_UI::soloing_changed (bool onoff)
 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
@@ -552,12 +552,12 @@ ARDOUR_UI::audition_blink (bool onoff)
 
        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);
        }
 }
 
@@ -633,3 +633,9 @@ ARDOUR_UI::click_button_clicked (GdkEventButton* ev)
        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());
+}