summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-07-31 16:46:54 +0000
committerDavid Robillard <d@drobilla.net>2012-07-31 16:46:54 +0000
commit575757e4ed87d7282bc77ba86c6221675d0ea4fc (patch)
treeeb08092f97fb3d453e503c69faad938c23874c4b /src/gui
parentcfce7723dd18d7746f591c9de890ebaaf1bd6463 (diff)
downloadingen-575757e4ed87d7282bc77ba86c6221675d0ea4fc.tar.gz
ingen-575757e4ed87d7282bc77ba86c6221675d0ea4fc.tar.bz2
ingen-575757e4ed87d7282bc77ba86c6221675d0ea4fc.zip
Request plugins and root patch on LV2 UI startup.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4586 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/PatchView.cpp2
-rw-r--r--src/gui/ingen_gui_lv2.cpp6
2 files changed, 6 insertions, 2 deletions
diff --git a/src/gui/PatchView.cpp b/src/gui/PatchView.cpp
index bc31ee3a..1e9e2d6a 100644
--- a/src/gui/PatchView.cpp
+++ b/src/gui/PatchView.cpp
@@ -184,8 +184,6 @@ void
PatchView::refresh_clicked()
{
_app->interface()->get(_patch->path());
- Raul::warn("Refreshing plugins\n");
- _app->interface()->get("ingen:plugins");
}
void
diff --git a/src/gui/ingen_gui_lv2.cpp b/src/gui/ingen_gui_lv2.cpp
index a9eff24d..d1eeb6cd 100644
--- a/src/gui/ingen_gui_lv2.cpp
+++ b/src/gui/ingen_gui_lv2.cpp
@@ -128,6 +128,9 @@ instantiate(const LV2UI_Descriptor* descriptor,
ui->world->forge(),
*ui->client.get()));
+ // Request plugins
+ ui->world->interface()->get("ingen:plugins");
+
// Create empty root patch model
Ingen::Resource::Properties props;
props.insert(std::make_pair(ui->app->uris().rdf_type,
@@ -141,6 +144,9 @@ instantiate(const LV2UI_Descriptor* descriptor,
ui->view->unparent();
*widget = ui->view->gobj();
+ // Request the actual root patch
+ ui->world->interface()->get("path:/");
+
return ui;
}