remove debug output
[ardour.git] / gtk2_ardour / shuttle_control.cc
index 06afd6c39c61f9a2dd8c0aff0adae16257148e55..4616b7673473fdf06ff15cbc943a7dc51daad0b9 100644 (file)
 #include "gtkmm2ext/rgb_macros.h"
 
 #include "actions.h"
-#include "ardour_ui.h"
 #include "rgb_macros.h"
 #include "shuttle_control.h"
+#include "tooltips.h"
 
 #include "i18n.h"
 
 using namespace Gtk;
 using namespace Gtkmm2ext;
 using namespace ARDOUR;
+using namespace ARDOUR_UI_UTILS;
 using std::min;
 using std::max;
 
@@ -53,7 +54,7 @@ ShuttleControl::ShuttleControl ()
        : _controllable (new ShuttleControllable (*this))
        , binding_proxy (_controllable)
 {
-       ARDOUR_UI::instance()->set_tip (*this, _("Shuttle speed control (Context-click for options)"));
+       set_tooltip (*this, _("Shuttle speed control (Context-click for options)"));
 
        pattern = 0;
        shine_pattern = 0;
@@ -321,7 +322,7 @@ ShuttleControl::on_button_release_event (GdkEventButton* ev)
                        shuttle_grabbed = false;
                        remove_modal_grab ();
                        gdk_pointer_ungrab (GDK_CURRENT_TIME);
-                       
+
                        if (Config->get_shuttle_behaviour() == Sprung) {
                                if (shuttle_speed_on_grab == 0 ) {
                                        _session->request_stop ();
@@ -396,7 +397,7 @@ ShuttleControl::on_scroll_event (GdkEventScroll* ev)
        default:
                return false;
        }
-       
+
        if (semis) {
 
                float lower_side_of_dead_zone = semitones_as_fract (-24, true);
@@ -677,7 +678,7 @@ ShuttleControl::ShuttleControllable::ShuttleControllable (ShuttleControl& s)
 }
 
 void
-ShuttleControl::ShuttleControllable::set_value (double val)
+ShuttleControl::ShuttleControllable::set_value (double val, PBD::Controllable::GroupControlDisposition /*group_override*/)
 {
        sc.set_shuttle_fract ((val - lower()) / (upper() - lower()), true);
 }