summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-12-01 20:53:28 +0000
committerDavid Robillard <d@drobilla.net>2011-12-01 20:53:28 +0000
commitc06607a48b86c00fb526228e737e978bcfa7602f (patch)
tree1395f80f249b6a0402459430c4a260dce3f59a33
parentf0a75a3f1d835bc235953d03e1b219bc8d6fcfab (diff)
downloadingen-c06607a48b86c00fb526228e737e978bcfa7602f.tar.gz
ingen-c06607a48b86c00fb526228e737e978bcfa7602f.tar.bz2
ingen-c06607a48b86c00fb526228e737e978bcfa7602f.zip
Use consistent property wrappers for x and y coordinates.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3730 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/gui/NodeModule.cpp8
-rw-r--r--src/gui/PatchPortModule.cpp8
-rw-r--r--src/gui/SubpatchModule.cpp4
3 files changed, 10 insertions, 10 deletions
diff --git a/src/gui/NodeModule.cpp b/src/gui/NodeModule.cpp
index 79ca74eb..386bea49 100644
--- a/src/gui/NodeModule.cpp
+++ b/src/gui/NodeModule.cpp
@@ -370,8 +370,8 @@ NodeModule::on_double_click(GdkEventButton* ev)
void
NodeModule::store_location()
{
- const Atom x(static_cast<float>(property_x()));
- const Atom y(static_cast<float>(property_y()));
+ const Atom x(static_cast<float>(get_x()));
+ const Atom y(static_cast<float>(get_y()));
const URIs& uris = app().uris();
@@ -396,9 +396,9 @@ NodeModule::property_changed(const URI& key, const Atom& value)
switch (value.type()) {
case Atom::FLOAT:
if (key == uris.ingen_canvas_x) {
- move_to(value.get_float(), property_y());
+ move_to(value.get_float(), get_y());
} else if (key == uris.ingen_canvas_y) {
- move_to(property_x(), value.get_float());
+ move_to(get_x(), value.get_float());
}
break;
case Atom::BOOL:
diff --git a/src/gui/PatchPortModule.cpp b/src/gui/PatchPortModule.cpp
index 3efd577f..ef886ddd 100644
--- a/src/gui/PatchPortModule.cpp
+++ b/src/gui/PatchPortModule.cpp
@@ -85,8 +85,8 @@ PatchPortModule::show_menu(GdkEventButton* ev)
void
PatchPortModule::store_location()
{
- const Atom x(static_cast<float>(property_x()));
- const Atom y(static_cast<float>(property_y()));
+ const Atom x(static_cast<float>(get_x()));
+ const Atom y(static_cast<float>(get_y()));
const URIs& uris = app().uris();
@@ -131,9 +131,9 @@ PatchPortModule::property_changed(const URI& key, const Atom& value)
switch (value.type()) {
case Atom::FLOAT:
if (key == uris.ingen_canvas_x) {
- move_to(value.get_float(), property_y());
+ move_to(value.get_float(), get_y());
} else if (key == uris.ingen_canvas_y) {
- move_to(property_x(), value.get_float());
+ move_to(get_x(), value.get_float());
}
break;
case Atom::STRING:
diff --git a/src/gui/SubpatchModule.cpp b/src/gui/SubpatchModule.cpp
index 4dbb56a5..51c41493 100644
--- a/src/gui/SubpatchModule.cpp
+++ b/src/gui/SubpatchModule.cpp
@@ -63,8 +63,8 @@ SubpatchModule::on_double_click(GdkEventButton* event)
void
SubpatchModule::store_location()
{
- const Atom x(static_cast<float>(property_x()));
- const Atom y(static_cast<float>(property_y()));
+ const Atom x(static_cast<float>(get_x()));
+ const Atom y(static_cast<float>(get_y()));
const URIs& uris = app().uris();