summaryrefslogtreecommitdiffstats
path: root/src/gui/LoadRemotePatchWindow.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-10-22 03:08:06 +0000
committerDavid Robillard <d@drobilla.net>2011-10-22 03:08:06 +0000
commitac1d6d135bda8d739fdb8bf564f89c38b664c097 (patch)
treed750da79dd88b64ab2a88cca1651c2a5a240bd72 /src/gui/LoadRemotePatchWindow.cpp
parent143968e38cc2f058dd7c500e984904a39864d652 (diff)
downloadingen-ac1d6d135bda8d739fdb8bf564f89c38b664c097.tar.gz
ingen-ac1d6d135bda8d739fdb8bf564f89c38b664c097.tar.bz2
ingen-ac1d6d135bda8d739fdb8bf564f89c38b664c097.zip
De-singleton-ify GUI.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3584 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/LoadRemotePatchWindow.cpp')
-rw-r--r--src/gui/LoadRemotePatchWindow.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/LoadRemotePatchWindow.cpp b/src/gui/LoadRemotePatchWindow.cpp
index 1bfafc50..55ceccc0 100644
--- a/src/gui/LoadRemotePatchWindow.cpp
+++ b/src/gui/LoadRemotePatchWindow.cpp
@@ -67,17 +67,17 @@ LoadRemotePatchWindow::present(SharedPtr<const PatchModel> patch,
cerr << "FIXME: load remote patch" << endl;
#if 0
- Sord::Model model(*App::instance().world()->rdf_world(),
+ Sord::Model model(*_app->world()->rdf_world(),
"http://rdf.drobilla.net/ingen_patches/index.ttl",
"http://rdf.drobilla.net/ingen_patches/");
- Sord::Query query(*App::instance().world()->rdf_world(), Glib::ustring(
+ Sord::Query query(*_app->world()->rdf_world(), Glib::ustring(
"SELECT DISTINCT ?name ?uri WHERE {"
" ?uri a ingen:Patch ;"
" doap:name ?name ."
"}"));
- SharedPtr<Sord::QueryResults> results(query.run(*App::instance().world()->rdf_world(), model));
+ SharedPtr<Sord::QueryResults> results(query.run(*_app->world()->rdf_world(), model));
for (; !results->finished(); results->next()) {
Gtk::TreeModel::iterator iter = _liststore->append();
(*iter)[_columns._col_name] = results->get("name").to_string();
@@ -135,7 +135,7 @@ LoadRemotePatchWindow::open_clicked()
if (!_patch->path().is_root())
parent = _patch->path().parent();
- App::instance().loader()->load_patch(true, uri,
+ _app->loader()->load_patch(true, uri,
parent, symbol, _initial_data);
hide();