GenericUI: don't add all inputs to automation vector
authorJulien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr>
Thu, 28 Jul 2016 20:00:58 +0000 (22:00 +0200)
committerJulien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr>
Thu, 28 Jul 2016 21:21:09 +0000 (23:21 +0200)
commit535814cf987c4b2067de5afb44d2064321c61a8f
tree4b637d03f546ab60de23576204463f8d76abb502
parent35a20a8bcc7fb01dbb9f7f04ada5ad6dd4aa268f
GenericUI: don't add all inputs to automation vector

That list is used to set the automation state of all automatable
controls when the global automation state is changed with the buttons at
the top of the generic UI window. The controls were added to the list
regardless of the automatable status, and some controls were even added
multiple times: once in build_control_ui() and once in build().

Since changing the state of non-automatable controls is wrong, only add
the control UI in build_control_ui() which already has the knowledge of
automatable or not.
gtk2_ardour/generic_pluginui.cc