+ if (mcontrol->flags () & Controllable::NotAutomatable) {
+ control_ui->automate_button.set_sensitive (false);
+ set_tooltip(control_ui->automate_button, _("This control cannot be automated"));
+ } else {
+ control_ui->automate_button.signal_clicked().connect (sigc::bind (sigc::mem_fun(*this, &GenericPluginUI::astate_clicked), control_ui));
+ mcontrol->alist()->automation_state_changed.connect (control_connections, invalidator (*this), boost::bind (&GenericPluginUI::automation_state_changed, this, control_ui), gui_context());
+ }