summaryrefslogtreecommitdiff
path: root/gtk2_ardour/generic_pluginui.cc
diff options
context:
space:
mode:
authorJulien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr>2016-07-29 00:10:19 +0200
committerJulien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr>2016-07-29 00:14:20 +0200
commit5c5b7746a28fc67f25f19b11a46eadac5410573c (patch)
tree5427971f116b221a71275aa303ed0fbfc7993659 /gtk2_ardour/generic_pluginui.cc
parenta7b29d79668dfe24b3b07b4bc100d5bdc439cee3 (diff)
GenericUI: disable super rapid timer for input controls
The super rapid timer was disconnected by GenericPluginUI::stop_updating but never connected again, so the generic UI worked often without getting periodic update triggers anyway. Try to disable the mechanism altogether, and see if there are updating glitches.
Diffstat (limited to 'gtk2_ardour/generic_pluginui.cc')
-rw-r--r--gtk2_ardour/generic_pluginui.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/gtk2_ardour/generic_pluginui.cc b/gtk2_ardour/generic_pluginui.cc
index 1f7b94129e..e261645df4 100644
--- a/gtk2_ardour/generic_pluginui.cc
+++ b/gtk2_ardour/generic_pluginui.cc
@@ -747,6 +747,9 @@ GenericPluginUI::build_control_ui (const Evoral::Parameter& param,
*/
control_ui->controller = AutomationController::create(insert, mcontrol->parameter(), desc, mcontrol, use_knob);
+ /* Control UI's don't need the rapid timer workaround */
+ control_ui->controller->stop_updating ();
+
/* XXX this code is not right yet, because it doesn't handle
the absence of bounds in any sensible fashion.
*/
@@ -1037,14 +1040,9 @@ GenericPluginUI::start_updating (GdkEventAny*)
bool
GenericPluginUI::stop_updating (GdkEventAny*)
{
- for (vector<ControlUI*>::iterator i = input_controls.begin(); i != input_controls.end(); ++i) {
- (*i)->controller->stop_updating ();
- }
-
if (output_controls.size() > 0 ) {
screen_update_connection.disconnect();
}
-
return false;
}