summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gui/NodeModule.cpp6
-rw-r--r--src/gui/NodeModule.hpp2
-rw-r--r--src/gui/PatchPortModule.cpp6
-rw-r--r--src/gui/PatchPortModule.hpp2
-rw-r--r--src/gui/SubpatchModule.cpp6
-rw-r--r--src/gui/SubpatchModule.hpp2
6 files changed, 12 insertions, 12 deletions
diff --git a/src/gui/NodeModule.cpp b/src/gui/NodeModule.cpp
index 034eb28d..bed94aac 100644
--- a/src/gui/NodeModule.cpp
+++ b/src/gui/NodeModule.cpp
@@ -367,10 +367,10 @@ NodeModule::on_event(GdkEvent* ev)
}
void
-NodeModule::store_location()
+NodeModule::store_location(double ax, double ay)
{
- const Atom x(static_cast<float>(get_x()));
- const Atom y(static_cast<float>(get_y()));
+ const Atom x(static_cast<float>(ax));
+ const Atom y(static_cast<float>(ay));
const URIs& uris = app().uris();
diff --git a/src/gui/NodeModule.hpp b/src/gui/NodeModule.hpp
index 7197b80a..2ebc3f75 100644
--- a/src/gui/NodeModule.hpp
+++ b/src/gui/NodeModule.hpp
@@ -61,7 +61,7 @@ public:
void delete_port_view(SharedPtr<const PortModel> port);
- virtual void store_location();
+ virtual void store_location(double x, double y);
void show_human_names(bool b);
SharedPtr<const NodeModel> node() const { return _node; }
diff --git a/src/gui/PatchPortModule.cpp b/src/gui/PatchPortModule.cpp
index 14edf6c5..4fa11acc 100644
--- a/src/gui/PatchPortModule.cpp
+++ b/src/gui/PatchPortModule.cpp
@@ -86,10 +86,10 @@ PatchPortModule::show_menu(GdkEventButton* ev)
}
void
-PatchPortModule::store_location()
+PatchPortModule::store_location(double ax, double ay)
{
- const Atom x(static_cast<float>(get_x()));
- const Atom y(static_cast<float>(get_y()));
+ const Atom x(static_cast<float>(ax));
+ const Atom y(static_cast<float>(ay));
const URIs& uris = app().uris();
diff --git a/src/gui/PatchPortModule.hpp b/src/gui/PatchPortModule.hpp
index 2478796d..0f7fc77a 100644
--- a/src/gui/PatchPortModule.hpp
+++ b/src/gui/PatchPortModule.hpp
@@ -55,7 +55,7 @@ public:
App& app() const;
- virtual void store_location();
+ virtual void store_location(double x, double y);
void show_human_names(bool b);
void set_name(const std::string& n);
diff --git a/src/gui/SubpatchModule.cpp b/src/gui/SubpatchModule.cpp
index 51c41493..6d4f48e8 100644
--- a/src/gui/SubpatchModule.cpp
+++ b/src/gui/SubpatchModule.cpp
@@ -61,10 +61,10 @@ SubpatchModule::on_double_click(GdkEventButton* event)
}
void
-SubpatchModule::store_location()
+SubpatchModule::store_location(double ax, double ay)
{
- const Atom x(static_cast<float>(get_x()));
- const Atom y(static_cast<float>(get_y()));
+ const Atom x(static_cast<float>(ax));
+ const Atom y(static_cast<float>(ay));
const URIs& uris = app().uris();
diff --git a/src/gui/SubpatchModule.hpp b/src/gui/SubpatchModule.hpp
index f855a467..ac132953 100644
--- a/src/gui/SubpatchModule.hpp
+++ b/src/gui/SubpatchModule.hpp
@@ -52,7 +52,7 @@ public:
void on_double_click(GdkEventButton* ev);
- void store_location();
+ void store_location(double x, double y);
void browse_to_patch();
void menu_remove();