diff options
author | David Robillard <d@drobilla.net> | 2007-09-24 01:05:07 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-09-24 01:05:07 +0000 |
commit | 5b706499e0a2ad3056afd2f9db1487ad169ec059 (patch) | |
tree | 1d8e76850f53e27a3abb5c186671c98bd6297559 /src/libs | |
parent | fd53f46a38f6894164e3e91cbfa311af76e8c678 (diff) | |
download | ingen-5b706499e0a2ad3056afd2f9db1487ad169ec059.tar.gz ingen-5b706499e0a2ad3056afd2f9db1487ad169ec059.tar.bz2 ingen-5b706499e0a2ad3056afd2f9db1487ad169ec059.zip |
LV2 UI interface cleanups.
Documentation reorganization.
Updated LV2 spec (1.0beta5).
git-svn-id: http://svn.drobilla.net/lad/ingen@775 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs')
-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; |