diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/NodeModule.cpp | 2 | ||||
-rw-r--r-- | src/gui/PatchCanvas.cpp | 11 |
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 |