summaryrefslogtreecommitdiff
path: root/libs/gtkmm2ext/slider_controller.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2009-12-04 17:45:11 +0000
committerCarl Hetherington <carl@carlh.net>2009-12-04 17:45:11 +0000
commit12c97285305fba9c0edf2297128e978b0f2ccd67 (patch)
treee37a98940371cf04f14ea3248298f73718bea537 /libs/gtkmm2ext/slider_controller.cc
parent4a836618f3f9eb28848353e072315da1f2ccfbf0 (diff)
Make processor box send faders adjust their size correctly.
git-svn-id: svn://localhost/ardour2/branches/3.0@6280 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/gtkmm2ext/slider_controller.cc')
-rw-r--r--libs/gtkmm2ext/slider_controller.cc14
1 files changed, 6 insertions, 8 deletions
diff --git a/libs/gtkmm2ext/slider_controller.cc b/libs/gtkmm2ext/slider_controller.cc
index 3947ed8096..f86fd19820 100644
--- a/libs/gtkmm2ext/slider_controller.cc
+++ b/libs/gtkmm2ext/slider_controller.cc
@@ -28,11 +28,9 @@
using namespace Gtkmm2ext;
using namespace PBD;
-SliderController::SliderController (Glib::RefPtr<Gdk::Pixbuf> image,
- Gtk::Adjustment *adj, int orientation,
- bool /*with_numeric*/)
+SliderController::SliderController (Glib::RefPtr<Gdk::Pixbuf> image, Gtk::Adjustment *adj, int orientation, int fader_length)
- : PixFader (image, *adj, orientation),
+ : PixFader (image, *adj, orientation, fader_length),
spin (*adj, 0, 2)
{
spin.set_name ("SliderControllerValue");
@@ -58,10 +56,10 @@ SliderController::on_button_press_event (GdkEventButton *ev)
}
VSliderController::VSliderController (Glib::RefPtr<Gdk::Pixbuf> image,
- Gtk::Adjustment *adj,
+ Gtk::Adjustment *adj, int fader_length,
bool with_numeric)
- : SliderController (image, adj, VERT, with_numeric)
+ : SliderController (image, adj, VERT, fader_length)
{
if (with_numeric) {
spin_frame.add (spin);
@@ -73,10 +71,10 @@ VSliderController::VSliderController (Glib::RefPtr<Gdk::Pixbuf> image,
}
HSliderController::HSliderController (Glib::RefPtr<Gdk::Pixbuf> image,
- Gtk::Adjustment *adj,
+ Gtk::Adjustment *adj, int fader_length,
bool with_numeric)
- : SliderController (image, adj, HORIZ, with_numeric)
+ : SliderController (image, adj, HORIZ, fader_length)
{
if (with_numeric) {
spin_frame.add (spin);