summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-04-26 23:43:59 +0000
committerDavid Robillard <d@drobilla.net>2012-04-26 23:43:59 +0000
commit4e3a82b0de3646e74e40695d2537bb5071682318 (patch)
treea7d5acca4a40870620413ee96ecade115ac07604 /src
parentb9de87b822a4fd61ffd4f0c899f7b8f81955c3f1 (diff)
downloadingen-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')
-rw-r--r--src/gui/ingen_gui_lv2.cpp2
-rw-r--r--src/serialisation/Serialiser.cpp4
2 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/ingen_gui_lv2.cpp b/src/gui/ingen_gui_lv2.cpp
index 2a583d39..ae70e441 100644
--- a/src/gui/ingen_gui_lv2.cpp
+++ b/src/gui/ingen_gui_lv2.cpp
@@ -28,7 +28,7 @@
#include "App.hpp"
#include "PatchBox.hpp"
-#define INGEN_LV2_UI_URI "http://drobilla.net/ns/ingen#ui"
+#define INGEN_LV2_UI_URI "http://drobilla.net/ns/ingen#PatchUIGtk2"
/** A sink that writes atoms to a port via the UI extension. */
struct IngenLV2AtomSink : public Ingen::Shared::AtomSink {
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());