diff options
author | David Robillard <d@drobilla.net> | 2012-04-26 23:43:59 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-04-26 23:43:59 +0000 |
commit | 4e3a82b0de3646e74e40695d2537bb5071682318 (patch) | |
tree | a7d5acca4a40870620413ee96ecade115ac07604 /src/serialisation | |
parent | b9de87b822a4fd61ffd4f0c899f7b8f81955c3f1 (diff) | |
download | ingen-4e3a82b0de3646e74e40695d2537bb5071682318.tar.gz ingen-4e3a82b0de3646e74e40695d2537bb5071682318.tar.bz2 ingen-4e3a82b0de3646e74e40695d2537bb5071682318.zip |
Save properties with pretty numbers so normal LV2 tools can read patches.
Fix running as a plugin.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4279 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/serialisation')
-rw-r--r-- | src/serialisation/Serialiser.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/serialisation/Serialiser.cpp b/src/serialisation/Serialiser.cpp index c26be7be..d0d0e0d8 100644 --- a/src/serialisation/Serialiser.cpp +++ b/src/serialisation/Serialiser.cpp @@ -348,7 +348,7 @@ Serialiser::Impl::serialise_patch(SharedPtr<const Patch> patch, _model->add_statement(patch_id, Sord::URI(world, LV2_UI__ui), - Sord::URI(world, "http://drobilla.net/ns/ingen#ui")); + Sord::URI(world, "http://drobilla.net/ns/ingen#PatchUIGtk2")); const URIs& uris = *_world.uris().get(); @@ -556,6 +556,8 @@ Serialiser::Impl::serialise_properties(const GraphObject* o, (SerdStatementSink)sord_inserter_write_statement, NULL, inserter); + sratom_set_pretty_numbers(sratom, true); + typedef GraphObject::Properties::const_iterator iterator; for (iterator v = props.begin(); v != props.end(); ++v) { const Sord::URI key(_model->world(), v->first.str()); |