diff options
author | David Robillard <d@drobilla.net> | 2009-05-28 14:53:23 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-05-28 14:53:23 +0000 |
commit | 57bf41d3d6153f2202fcef50bc618806d2b58104 (patch) | |
tree | cc66097103e396908106d1470f1f9556e3b42cd6 /src | |
parent | 11e7e3ee4195c6afe223f0f11aede1db12051d47 (diff) | |
download | ingen-57bf41d3d6153f2202fcef50bc618806d2b58104.tar.gz ingen-57bf41d3d6153f2202fcef50bc618806d2b58104.tar.bz2 ingen-57bf41d3d6153f2202fcef50bc618806d2b58104.zip |
Send both coordinates of a module move as a single PUT.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2022 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/NodeModule.cpp | 6 | ||||
-rw-r--r-- | src/gui/PatchPortModule.cpp | 8 |
2 files changed, 10 insertions, 4 deletions
diff --git a/src/gui/NodeModule.cpp b/src/gui/NodeModule.cpp index b330ab8d..99ffe4e3 100644 --- a/src/gui/NodeModule.cpp +++ b/src/gui/NodeModule.cpp @@ -366,8 +366,10 @@ NodeModule::store_location() if (existing_x.type() != Atom::FLOAT || existing_y.type() != Atom::FLOAT || existing_x.get_float() != x || existing_y.get_float() != y) { - App::instance().engine()->set_property(_node->path(), "ingenuity:canvas-x", Atom(x)); - App::instance().engine()->set_property(_node->path(), "ingenuity:canvas-y", Atom(y)); + Shared::Resource::Properties props; + props.insert(make_pair("ingenuity:canvas-x", Atom(x))); + props.insert(make_pair("ingenuity:canvas-y", Atom(y))); + App::instance().engine()->put(_node->path(), props); } } diff --git a/src/gui/PatchPortModule.cpp b/src/gui/PatchPortModule.cpp index 6ceea483..19a2210f 100644 --- a/src/gui/PatchPortModule.cpp +++ b/src/gui/PatchPortModule.cpp @@ -17,6 +17,7 @@ #include <cassert> #include <iostream> +#include <utility> #include "PatchPortModule.hpp" #include "interface/EngineInterface.hpp" #include "client/PatchModel.hpp" @@ -30,6 +31,7 @@ #include "WindowFactory.hpp" #include "PortMenu.hpp" +using namespace std; using namespace Raul; namespace Ingen { @@ -101,8 +103,10 @@ PatchPortModule::store_location() if (existing_x.type() != Atom::FLOAT || existing_y.type() != Atom::FLOAT || existing_x.get_float() != x || existing_y.get_float() != y) { - App::instance().engine()->set_property(_model->meta_uri(), "ingenuity:canvas-x", Atom(x)); - App::instance().engine()->set_property(_model->meta_uri(), "ingenuity:canvas-y", Atom(y)); + Shared::Resource::Properties props; + props.insert(make_pair("ingenuity:canvas-x", Atom(x))); + props.insert(make_pair("ingenuity:canvas-y", Atom(y))); + App::instance().engine()->put(_model->meta_uri(), props); } } |