Remove superfluous typedefs.
[ardour.git] / libs / gtkmm2ext / slider_controller.cc
index 3e2b42f409361011e3e275729b323dc335cf4e25..4eee6a6f36df944a088dfa2403bb91186ae78b2c 100644 (file)
@@ -29,12 +29,10 @@ using namespace Gtkmm2ext;
 using namespace PBD;
 
 SliderController::SliderController (Glib::RefPtr<Gdk::Pixbuf> image,
-                                   Gtk::Adjustment *adj,
-                                   Controllable& c,
+                                   Gtk::Adjustment *adj,  int orientation,
                                    bool with_numeric)
 
-       : PixFader (image, *adj),
-         binding_proxy (c),
+       : PixFader (image, *adj, orientation),
          spin (*adj, 0, 2)
 {                        
        spin.set_name ("SliderControllerValue");
@@ -55,15 +53,15 @@ SliderController::on_button_press_event (GdkEventButton *ev)
        if (binding_proxy.button_press_handler (ev)) {
                return true;
        }
+
        return PixFader::on_button_press_event (ev);
 }
 
 VSliderController::VSliderController (Glib::RefPtr<Gdk::Pixbuf> image,
                                      Gtk::Adjustment *adj,
-                                     Controllable& control,
                                      bool with_numeric)
 
-       : SliderController (image, adj, control, with_numeric)
+       : SliderController (image, adj, VERT, with_numeric)
 {
        if (with_numeric) {
                spin_frame.add (spin);
@@ -76,10 +74,9 @@ VSliderController::VSliderController (Glib::RefPtr<Gdk::Pixbuf> image,
 
 HSliderController::HSliderController (Glib::RefPtr<Gdk::Pixbuf> image,
                                      Gtk::Adjustment *adj,
-                                     Controllable& control,
                                      bool with_numeric)
        
-       : SliderController (image, adj, control, with_numeric)
+       : SliderController (image, adj, HORIZ, with_numeric)
 {
        if (with_numeric) {
                spin_frame.add (spin);