X-Git-Url: http://git.cinelerra-gg.org/git/?p=goodguy%2Fhistory.git;a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fpluginlv2gui.C;h=fd9a6f51174b1a42fad30b5d5b61abd5ff713916;hp=3c0c45663fb946d5e6db5f59025d4fb2a64ec7c7;hb=502b6f3b6fd04f6b01c6d70dcb81aa304dd0db1c;hpb=114b45040c8027671cbe50e7d6cecb28bf73b35f diff --git a/cinelerra-5.1/cinelerra/pluginlv2gui.C b/cinelerra-5.1/cinelerra/pluginlv2gui.C index 3c0c4566..fd9a6f51 100644 --- a/cinelerra-5.1/cinelerra/pluginlv2gui.C +++ b/cinelerra-5.1/cinelerra/pluginlv2gui.C @@ -213,7 +213,7 @@ void PluginLV2ClientWindow::create_objects() int x = 10, y = 10, x1; 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)); + add_subwindow(client_ui = new PluginLV2ClientUI(this, x1, y)); y += title->get_h() + 10; add_subwindow(varbl = new BC_Title(x, y, "")); add_subwindow(range = new BC_Title(x+160, y, "")); @@ -229,7 +229,6 @@ void PluginLV2ClientWindow::create_objects() add_subwindow(slider = new PluginLV2ClientSlider(this, x1, y+10)); y += pot->get_h() + 10; - client->init_lv2(); client->load_configuration(); client->config.update(); @@ -242,6 +241,7 @@ void PluginLV2ClientWindow::create_objects() show_window(1); if( client->server->mwindow->preferences->autostart_lv2ui ) { + client_ui->disable(); PluginLV2ParentUI *ui = get_ui(); ui->show(); } @@ -250,8 +250,8 @@ void PluginLV2ClientWindow::create_objects() int PluginLV2ClientWindow::resize_event(int w, int h) { int x1; - x1 = w - ui->get_w() - 8; - ui->reposition_window(x1, ui->get_y()); + x1 = w - client_ui->get_w() - 8; + client_ui->reposition_window(x1, client_ui->get_y()); x1 = w - reset->get_w() - 8; reset->reposition_window(x1, reset->get_y()); x1 = w - apply->get_w() - 8; @@ -355,4 +355,11 @@ void PluginLV2ClientWindow::lv2_set(int idx, float val) lv2_update(); } +void PluginLV2ClientWindow::lv2_ui_enable() +{ + lock_window("PluginLV2ClientWindow::lv2_update"); + client_ui->enable(); + unlock_window(); +} + #endif