From 42347b5c859a77eb99af1c718b48170b0672dc5e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 9 Aug 2014 04:23:18 +0000 Subject: 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 --- src/gui/NodeMenu.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/gui/NodeMenu.cpp') 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)); -- cgit v1.2.1