13
0

add padding to in-line plugin controls

This commit is contained in:
Robin Gareus 2014-01-04 19:03:47 +01:00
parent c4de104822
commit 8c7cae0d8f
2 changed files with 4 additions and 3 deletions

View File

@ -449,12 +449,13 @@ ProcessorEntry::Control::Control (boost::shared_ptr<AutomationControl> 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<AutomationControl> 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 ());

View File

@ -180,7 +180,7 @@ private:
return _name;
}
Gtk::VBox box;
Gtk::Alignment box;
private:
void slider_adjusted ();