From: Julien "_FrnchFrgg_" RIVAUD Date: Thu, 28 Jul 2016 22:10:19 +0000 (+0200) Subject: GenericUI: disable super rapid timer for input controls X-Git-Tag: 5.0-rc2~84 X-Git-Url: https://main.carlh.net/gitweb/?a=commitdiff_plain;h=5c5b7746a28fc67f25f19b11a46eadac5410573c;p=ardour.git 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. --- 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::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; }