X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fgtkmm2ext%2Fbarcontroller.cc;h=0c777ed9991636130bfe6cff1fb11690d9a78420;hb=77ce989dfa38a302da8722e6021e7ee768a5afb3;hp=5ac58212051ef109e9754a3cdd0e43c615c73ad6;hpb=ad017365f7a73f8ba57f667cc1aa36478b48c50e;p=ardour.git diff --git a/libs/gtkmm2ext/barcontroller.cc b/libs/gtkmm2ext/barcontroller.cc index 5ac5821205..0c777ed999 100644 --- a/libs/gtkmm2ext/barcontroller.cc +++ b/libs/gtkmm2ext/barcontroller.cc @@ -39,7 +39,7 @@ using namespace Gtkmm2ext; BarController::BarController (Gtk::Adjustment& adj, boost::shared_ptr mc) - : _slider (&adj, 60, 16) + : _slider (&adj, mc, 60, 16) , _switching (false) , _switch_on_release (false) { @@ -47,7 +47,6 @@ BarController::BarController (Gtk::Adjustment& adj, add_events (Gdk::BUTTON_PRESS_MASK | Gdk::BUTTON_RELEASE_MASK); set (.5, .5, 1.0, 1.0); set_border_width (0); - _slider.set_controllable (mc); _slider.set_tweaks (PixFader::NoShowUnityLine); _slider.StartGesture.connect (sigc::mem_fun(*this, &BarController::passtrhu_gesture_start));