diff options
-rw-r--r-- | src/libs/client/PluginModel.cpp | 16 | ||||
-rw-r--r-- | src/libs/gui/NodeModule.cpp | 4 |
2 files changed, 10 insertions, 10 deletions
diff --git a/src/libs/client/PluginModel.cpp b/src/libs/client/PluginModel.cpp index e532dd7a..15b346e5 100644 --- a/src/libs/client/PluginModel.cpp +++ b/src/libs/client/PluginModel.cpp @@ -118,14 +118,14 @@ PluginModel::ui(EngineInterface* engine, NodeModel* node) const char* gtk_gui_uri = "http://ll-plugins.nongnu.org/lv2/ext/gui/dev/1#GtkGUI"; - SLV2PluginUIs uis = slv2_plugin_get_uis(_slv2_plugin); - SLV2PluginUI ui = NULL; + SLV2UIs uis = slv2_plugin_get_uis(_slv2_plugin); + SLV2UI ui = NULL; if (slv2_values_size(uis) > 0) { - for (unsigned i=0; i < slv2_plugin_uis_size(uis); ++i) { - ui = slv2_plugin_uis_get_at(uis, i); + for (unsigned i=0; i < slv2_uis_size(uis); ++i) { + ui = slv2_uis_get_at(uis, i); - if (slv2_plugin_ui_is_type(ui, gtk_gui_uri)) { + if (slv2_ui_is_type(ui, gtk_gui_uri)) { break; } else { ui = NULL; @@ -134,15 +134,15 @@ PluginModel::ui(EngineInterface* engine, NodeModel* node) } if (ui) { - cout << "Found GTK Plugin UI " << slv2_plugin_ui_get_uri(ui) << endl; + cout << "Found GTK Plugin UI " << slv2_ui_get_uri(ui) << endl; - ret = slv2_plugin_ui_instantiate(_slv2_plugin, + ret = slv2_ui_instantiate(_slv2_plugin, ui, lv2_ui_write, lv2_ui_command, lv2_ui_program_change, lv2_ui_program_save, controller, NULL); - //slv2_plugin_ui_free(ui); + //slv2_ui_free(ui); } return ret; diff --git a/src/libs/gui/NodeModule.cpp b/src/libs/gui/NodeModule.cpp index aad1c873..c80952b5 100644 --- a/src/libs/gui/NodeModule.cpp +++ b/src/libs/gui/NodeModule.cpp @@ -114,8 +114,8 @@ NodeModule::embed_gui(bool embed) _gui = Glib::wrap(c_widget); assert(_gui); - /* Kludge, show in window to get size */ - container = new Gtk::Alignment(); + //container = new Gtk::Alignment(); // transparent bg but uber slow + container = new Gtk::EventBox(); container->add(*_gui); container->show_all(); /*Gdk::Color color; |