From 3acaae2bedf7f74d97128e951d5e86720d53ba54 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 2 Nov 2011 02:22:09 +0000 Subject: Use ingen namespace for canvas-x and canvas-y and remove ingenuity namespace. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3597 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/NodeModule.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/gui/NodeModule.cpp') diff --git a/src/gui/NodeModule.cpp b/src/gui/NodeModule.cpp index 5a8e30ad..0767a175 100644 --- a/src/gui/NodeModule.cpp +++ b/src/gui/NodeModule.cpp @@ -365,16 +365,16 @@ NodeModule::store_location() const URIs& uris = app().uris(); - const Atom& existing_x = _node->get_property(uris.ingenui_canvas_x); - const Atom& existing_y = _node->get_property(uris.ingenui_canvas_y); + const Atom& existing_x = _node->get_property(uris.ingen_canvas_x); + const Atom& existing_y = _node->get_property(uris.ingen_canvas_y); if (x != existing_x && y != existing_y) { Resource::Properties remove; - remove.insert(make_pair(uris.ingenui_canvas_x, uris.wildcard)); - remove.insert(make_pair(uris.ingenui_canvas_y, uris.wildcard)); + remove.insert(make_pair(uris.ingen_canvas_x, uris.wildcard)); + remove.insert(make_pair(uris.ingen_canvas_y, uris.wildcard)); Resource::Properties add; - add.insert(make_pair(uris.ingenui_canvas_x, x)); - add.insert(make_pair(uris.ingenui_canvas_y, y)); + add.insert(make_pair(uris.ingen_canvas_x, x)); + add.insert(make_pair(uris.ingen_canvas_y, y)); app().engine()->delta(_node->path(), remove, add); } } @@ -385,9 +385,9 @@ NodeModule::property_changed(const URI& key, const Atom& value) const Shared::URIs& uris = app().uris(); switch (value.type()) { case Atom::FLOAT: - if (key == uris.ingenui_canvas_x) { + if (key == uris.ingen_canvas_x) { move_to(value.get_float(), property_y()); - } else if (key == uris.ingenui_canvas_y) { + } else if (key == uris.ingen_canvas_y) { move_to(property_x(), value.get_float()); } break; -- cgit v1.2.1