X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fpluginlv2gui.C;h=7d9f0e9c9671268af48b6b6a7d0c2b3397b7321f;hb=02595181cff2bce97eb19634bc3855778cb8c3b6;hp=f6e3518fa1662ecbf74c1a97b3ad3d191874db78;hpb=8fe9a22b4600301fee74b27bd8e0c44f9d681079;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/pluginlv2gui.C b/cinelerra-5.1/cinelerra/pluginlv2gui.C index f6e3518f..7d9f0e9c 100644 --- a/cinelerra-5.1/cinelerra/pluginlv2gui.C +++ b/cinelerra-5.1/cinelerra/pluginlv2gui.C @@ -18,6 +18,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ +#ifdef HAVE_LV2 #include "clip.h" #include "cstrdup.h" @@ -211,12 +212,8 @@ void PluginLV2ClientWindow::create_objects() BC_Title *title; int x = 10, y = 10, x1; add_subwindow(title = new BC_Title(x, y, client->title)); -#ifdef HAVE_LV2UI x1 = get_w() - BC_GenericButton::calculate_w(this, _("UI")) - 8; add_subwindow(ui = new PluginLV2ClientUI(this, x1, y)); -#else - ui = 0; -#endif y += title->get_h() + 10; add_subwindow(varbl = new BC_Title(x, y, "")); add_subwindow(range = new BC_Title(x+160, y, "")); @@ -232,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(); @@ -253,10 +249,8 @@ void PluginLV2ClientWindow::create_objects() int PluginLV2ClientWindow::resize_event(int w, int h) { int x1; -#ifdef HAVE_LV2UI x1 = w - ui->get_w() - 8; ui->reposition_window(x1, ui->get_y()); -#endif x1 = w - reset->get_w() - 8; reset->reposition_window(x1, reset->get_y()); x1 = w - apply->get_w() - 8; @@ -360,3 +354,4 @@ void PluginLV2ClientWindow::lv2_set(int idx, float val) lv2_update(); } +#endif