Obey snap setting for MIDI stuff.
[ardour.git] / gtk2_ardour / panner.cc
index 23fae953a16042e4aa8cefad8c453cf833250e18..2607cdf2b85e3ac3f346acd05aead4f04fd0594e 100644 (file)
@@ -34,8 +34,8 @@ null_label_callback (char* buf, unsigned int bufsize)
 }
 
 
-PannerBar::PannerBar (Gtk::Adjustment& adj, PBD::Controllable& c)
-       : BarController (adj, c, sigc::ptr_fun (null_label_callback))
+PannerBar::PannerBar (Gtk::Adjustment& adj, boost::shared_ptr<PBD::Controllable> c)
+       : BarController (adj, *c.get(), sigc::ptr_fun (null_label_callback))
 {
        set_style (BarController::Line);
 }