+void
+VCAMasterStrip::update_bottom_padding ()
+{
+ std::string viz = UIConfiguration::instance().get_mixer_strip_visibility ();
+
+ ArdourButton output_button (_("Output"));
+ ArdourButton comment_button (_("Comments"));
+
+ output_button.set_name ("mixer strip button");
+ comment_button.set_name ("generic button");
+
+ if (viz.find ("VCA") == std::string::npos) {
+ control_slave_ui.hide ();
+ } else {
+ control_slave_ui.show ();
+ }
+
+ int h = 0;
+ if (viz.find ("Output") != std::string::npos) {
+ Gtk::Window window (WINDOW_TOPLEVEL);
+ window.add (output_button);
+ Gtk::Requisition requisition(output_button.size_request ());
+ h += requisition.height + 2;
+ }
+ if (viz.find ("Comments") != std::string::npos) {
+ Gtk::Window window (WINDOW_TOPLEVEL);
+ window.add (comment_button);
+ Gtk::Requisition requisition(comment_button.size_request ());
+ h += requisition.height + 2;
+ }
+ if (h <= 0) {
+ bottom_padding.set_size_request (-1, 1);
+ bottom_padding.hide ();
+ } else {
+ bottom_padding.set_size_request (-1, h);
+ bottom_padding.show ();
+ }
+}
+