From 8c7cae0d8f98c17ac082da580a8467e436d9dd5a Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 4 Jan 2014 19:03:47 +0100 Subject: [PATCH] add padding to in-line plugin controls --- gtk2_ardour/processor_box.cc | 5 +++-- gtk2_ardour/processor_box.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/gtk2_ardour/processor_box.cc b/gtk2_ardour/processor_box.cc index e40b8e9bf9..bbadd775e5 100644 --- a/gtk2_ardour/processor_box.cc +++ b/gtk2_ardour/processor_box.cc @@ -449,12 +449,13 @@ ProcessorEntry::Control::Control (boost::shared_ptr c, string , _name (n) { _slider.set_controllable (c); + box.set_padding(0, 0, 4, 4); if (c->toggled()) { _button.set_text (_name); _button.set_led_left (true); _button.set_name ("processor control button"); - box.pack_start (_button); + box.add (_button); _button.show (); _button.signal_clicked.connect (sigc::mem_fun (*this, &Control::button_clicked)); @@ -466,7 +467,7 @@ ProcessorEntry::Control::Control (boost::shared_ptr c, string _slider.set_name ("PluginSlider"); _slider.set_text (_name); - box.pack_start (_slider); + box.add (_slider); _slider.show (); double const lo = c->internal_to_interface (c->lower ()); diff --git a/gtk2_ardour/processor_box.h b/gtk2_ardour/processor_box.h index 9534488f32..f0ff6bf34e 100644 --- a/gtk2_ardour/processor_box.h +++ b/gtk2_ardour/processor_box.h @@ -180,7 +180,7 @@ private: return _name; } - Gtk::VBox box; + Gtk::Alignment box; private: void slider_adjusted ();