summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-05-28 14:48:50 +0000
committerDavid Robillard <d@drobilla.net>2009-05-28 14:48:50 +0000
commit11e7e3ee4195c6afe223f0f11aede1db12051d47 (patch)
tree22ef8f7cae04f48604d6b80a1d9d2ef1ef2a4a3b
parent41a3a7891b94628cf37cc3e1412be63f12b6f674 (diff)
downloadingen-11e7e3ee4195c6afe223f0f11aede1db12051d47.tar.gz
ingen-11e7e3ee4195c6afe223f0f11aede1db12051d47.tar.bz2
ingen-11e7e3ee4195c6afe223f0f11aede1db12051d47.zip
Send plugin node creation as a single PUT instead of a bunch of separate set_property messages.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2021 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/gui/LoadPluginWindow.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/gui/LoadPluginWindow.cpp b/src/gui/LoadPluginWindow.cpp
index 03966964..4b024c8d 100644
--- a/src/gui/LoadPluginWindow.cpp
+++ b/src/gui/LoadPluginWindow.cpp
@@ -343,14 +343,10 @@ LoadPluginWindow::add_clicked()
dialog.run();
} else {
Path path = _patch->path().base() + Path::nameify(name);
- Resource::Properties props;
- props.insert(make_pair("rdf:type", Atom(Atom::URI, "ingen:Node")));
- props.insert(make_pair("rdf:instanceOf", Atom(Atom::URI, plugin->uri().str())));
- App::instance().engine()->put(path, props);
- App::instance().engine()->set_property(path, "ingen:polyphonic", bool(polyphonic));
- for (GraphObject::Properties::const_iterator i = _initial_data.begin();
- i != _initial_data.end(); ++i)
- App::instance().engine()->set_property(path, i->first, i->second);
+ Resource::Properties props = _initial_data;
+ props.insert(make_pair("rdf:type", Atom(Atom::URI, "ingen:Node")));
+ props.insert(make_pair("rdf:instanceOf", Atom(Atom::URI, plugin->uri().str())));
+ props.insert(make_pair("ingen:polyphonic", bool(polyphonic)));
_node_name_entry->set_text(generate_module_name(++_plugin_name_offset));
// Cascade