From 5a8d5ca92b60a760fbff8be5d8bbda0e616798cc Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 24 Apr 2012 01:44:43 +0000 Subject: 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 --- src/gui/NodeModule.cpp | 2 +- src/gui/PatchCanvas.cpp | 11 +---------- 2 files changed, 2 insertions(+), 11 deletions(-) (limited to 'src') 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 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 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(*i); - if (m) - m->set_show_port_labels(b); - } - #endif + ganv_canvas_set_direction(gobj(), b ? GANV_DIRECTION_RIGHT : GANV_DIRECTION_DOWN); } void -- cgit v1.2.1