summaryrefslogtreecommitdiffstats
path: root/src/gui/NodeMenu.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/NodeMenu.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/NodeMenu.cpp')
-rw-r--r--src/gui/NodeMenu.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gui/NodeMenu.cpp b/src/gui/NodeMenu.cpp
index ed764904..1a64d04e 100644
--- a/src/gui/NodeMenu.cpp
+++ b/src/gui/NodeMenu.cpp
@@ -157,10 +157,9 @@ NodeMenu::on_menu_randomize()
float min = 0.0f, max = 1.0f;
bm->port_value_range(p, min, max, _app->sample_rate());
const float val = g_random_double_range(0.0, 1.0) * (max - min) + min;
- _app->interface()->set_property(
- p->uri(),
- _app->uris().ingen_value,
- _app->forge().make(val));
+ _app->set_property(p->uri(),
+ _app->uris().ingen_value,
+ _app->forge().make(val));
}
}
@@ -189,7 +188,7 @@ set_port_value(const char* port_symbol,
return;
}
- menu->app()->interface()->set_property(
+ menu->app()->set_property(
Node::path_to_uri(block->path().child(Raul::Symbol(port_symbol))),
menu->app()->uris().ingen_value,
menu->app()->forge().alloc(size, type, value));