summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-04-24 01:44:43 +0000
committerDavid Robillard <d@drobilla.net>2012-04-24 01:44:43 +0000
commit5a8d5ca92b60a760fbff8be5d8bbda0e616798cc (patch)
treef734946cb0f87e9801c03e76346745c9e1c02629 /src/gui
parent461e11f5257c38350f54f40b1376591bcb5306e2 (diff)
downloadingen-5a8d5ca92b60a760fbff8be5d8bbda0e616798cc.tar.gz
ingen-5a8d5ca92b60a760fbff8be5d8bbda0e616798cc.tar.bz2
ingen-5a8d5ca92b60a760fbff8be5d8bbda0e616798cc.zip
Fix downward signal flow display (i.e. port labels disabled).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4260 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/NodeModule.cpp2
-rw-r--r--src/gui/PatchCanvas.cpp11
2 files changed, 2 insertions, 11 deletions
diff --git a/src/gui/NodeModule.cpp b/src/gui/NodeModule.cpp
index b4820008..bdd5f32f 100644
--- a/src/gui/NodeModule.cpp
+++ b/src/gui/NodeModule.cpp
@@ -44,7 +44,7 @@ namespace GUI {
NodeModule::NodeModule(PatchCanvas& canvas,
SharedPtr<const NodeModel> node)
- : Ganv::Module(canvas, node->path().symbol(), 0, 0, true, canvas.show_port_names())
+ : Ganv::Module(canvas, node->path().symbol(), 0, 0, true)
, _node(node)
, _gui_widget(NULL)
, _gui_window(NULL)
diff --git a/src/gui/PatchCanvas.cpp b/src/gui/PatchCanvas.cpp
index 4cc46c4c..66868556 100644
--- a/src/gui/PatchCanvas.cpp
+++ b/src/gui/PatchCanvas.cpp
@@ -80,7 +80,6 @@ PatchCanvas::PatchCanvas(App& app,
, _classless_menu(NULL)
, _plugin_menu(NULL)
, _human_names(true)
- , _show_port_names(true)
{
Glib::RefPtr<Gtk::Builder> xml = WidgetFactory::create("canvas_menu");
xml->get_widget("canvas_menu", _menu);
@@ -334,15 +333,7 @@ PatchCanvas::show_human_names(bool b)
void
PatchCanvas::show_port_names(bool b)
{
- std::cerr << "FIXME: show port names" << std::endl;
- #if 0
- _show_port_names = b;
- FOREACH_ITEM(i, items()) {
- Ganv::Module* m = dynamic_cast<Ganv::Module*>(*i);
- if (m)
- m->set_show_port_labels(b);
- }
- #endif
+ ganv_canvas_set_direction(gobj(), b ? GANV_DIRECTION_RIGHT : GANV_DIRECTION_DOWN);
}
void