X-Git-Url: http://git.cinelerra-gg.org/git/?p=goodguy%2Fhistory.git;a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fpluginlv2gui.C;h=ea5a102356094b5becc8a659e7f9b5e7a04fa300;hp=7d9f0e9c9671268af48b6b6a7d0c2b3397b7321f;hb=cb73d14fe59acbe8eba0a62f4af26a23072201fa;hpb=1baa507d5e5bff7918b9b579f018fd74636797fe diff --git a/cinelerra-5.1/cinelerra/pluginlv2gui.C b/cinelerra-5.1/cinelerra/pluginlv2gui.C index 7d9f0e9c..ea5a1023 100644 --- a/cinelerra-5.1/cinelerra/pluginlv2gui.C +++ b/cinelerra-5.1/cinelerra/pluginlv2gui.C @@ -214,6 +214,7 @@ void PluginLV2ClientWindow::create_objects() add_subwindow(title = new BC_Title(x, y, client->title)); x1 = get_w() - BC_GenericButton::calculate_w(this, _("UI")) - 8; add_subwindow(ui = new PluginLV2ClientUI(this, x1, y)); + ui->disable(); y += title->get_h() + 10; add_subwindow(varbl = new BC_Title(x, y, "")); add_subwindow(range = new BC_Title(x+160, y, "")); @@ -354,4 +355,11 @@ void PluginLV2ClientWindow::lv2_set(int idx, float val) lv2_update(); } +void PluginLV2ClientWindow::lv2_ui_enable() +{ + lock_window("PluginLV2ClientWindow::lv2_update"); + ui->enable(); + unlock_window(); +} + #endif