summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/NodeModule.cpp6
-rw-r--r--src/gui/PatchPortModule.cpp8
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);
}
}