summaryrefslogtreecommitdiffstats
path: root/src/gui/App.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-08-09 04:23:18 +0000
committerDavid Robillard <d@drobilla.net>2014-08-09 04:23:18 +0000
commit42347b5c859a77eb99af1c718b48170b0672dc5e (patch)
treec77c9567d64623a2df9f674a3c8791ded2dbb033 /src/gui/App.cpp
parented2d6f395dd6363f1955512b3f20cf3f39954783 (diff)
downloadingen-42347b5c859a77eb99af1c718b48170b0672dc5e.tar.gz
ingen-42347b5c859a77eb99af1c718b48170b0672dc5e.tar.bz2
ingen-42347b5c859a77eb99af1c718b48170b0672dc5e.zip
Fix GUI updates after operations by emulating set feedback.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5445 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/App.cpp')
-rw-r--r--src/gui/App.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/gui/App.cpp b/src/gui/App.cpp
index 3dc08609..22a5a95c 100644
--- a/src/gui/App.cpp
+++ b/src/gui/App.cpp
@@ -235,6 +235,21 @@ App::error_message(const string& str)
}
void
+App::set_property(const Raul::URI& subject,
+ const Raul::URI& key,
+ const Atom& value)
+{
+ // Send message to server
+ interface()->set_property(subject, key, value);
+
+ /* The server does not feed back set messages (kludge to prevent control
+ feedback and bandwidth wastage, see Delta.cpp). So, assume everything
+ went as planned here and fire the signal ourselves as if the server
+ feedback came back immediately. */
+ _client->signal_property_change().emit(subject, key, value);
+}
+
+void
App::property_change(const Raul::URI& subject,
const Raul::URI& key,
const Atom& value)