From 4e3a82b0de3646e74e40695d2537bb5071682318 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 26 Apr 2012 23:43:59 +0000 Subject: 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 --- src/gui/ingen_gui_lv2.cpp | 2 +- src/serialisation/Serialiser.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src') 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 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()); -- cgit v1.2.1