From 681fc6bcb59fb959594af6b9694112d4fd493eb0 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 19 Dec 2013 03:42:30 +0000 Subject: FDGL: Improve flow-directed layout. Allow apps to specify nodes as sources to improve layout. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5186 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/GraphPortModule.cpp | 3 +++ wscript | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gui/GraphPortModule.cpp b/src/gui/GraphPortModule.cpp index 77d8a6fe..9f403d6b 100644 --- a/src/gui/GraphPortModule.cpp +++ b/src/gui/GraphPortModule.cpp @@ -52,6 +52,9 @@ GraphPortModule::GraphPortModule(GraphCanvas& canvas, assert(dynamic_ptr_cast(model->parent())); set_stacked(model->polyphonic()); + if (model->is_input()) { + set_is_source(true); + } model->signal_property().connect( sigc::mem_fun(this, &GraphPortModule::property_changed)); diff --git a/wscript b/wscript index 390ca89b..cccfde53 100644 --- a/wscript +++ b/wscript @@ -74,7 +74,7 @@ def configure(conf): autowaf.check_pkg(conf, 'webkit-1.0', uselib_store='WEBKIT', atleast_version='1.4.0', mandatory=False) autowaf.check_pkg(conf, 'ganv-1', uselib_store='GANV', - atleast_version='1.0.0', mandatory=False) + atleast_version='1.2.1', mandatory=False) if not Options.options.no_socket: conf.check_cc(function_name='socket', header_name='sys/socket.h', -- cgit v1.2.1