From 997b406e7d71e335c62e7e1f5f0f87303b121b17 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 4 Dec 2011 23:33:40 +0000 Subject: Move module port management stuff down to C level. git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@3798 a436a847-0d15-0410-975c-d299462d15a1 --- src/PatchageModule.cpp | 8 +++++--- src/PatchagePort.hpp | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/PatchageModule.cpp b/src/PatchageModule.cpp index 4576261..6ebf335 100644 --- a/src/PatchageModule.cpp +++ b/src/PatchageModule.cpp @@ -131,14 +131,16 @@ PatchageModule::join() void PatchageModule::add_port(FlowCanvas::Port* port) { - FlowCanvas::Module::add_port(port); + std::cerr << "FIXME: add port" << std::endl; + //FlowCanvas::Module::add_port(port); update_menu(); } void PatchageModule::remove_port(FlowCanvas::Port* port) { - FlowCanvas::Module::remove_port(port); + std::cerr << "FIXME: remove port" << std::endl; + //FlowCanvas::Module::remove_port(port); update_menu(); } @@ -146,7 +148,7 @@ void PatchageModule::menu_disconnect_all() { for (iterator p = begin(); p != end(); ++p) - (*p)->disconnect_all(); + (*p)->disconnect(); } PatchagePort* diff --git a/src/PatchagePort.hpp b/src/PatchagePort.hpp index d770002..c54e055 100644 --- a/src/PatchagePort.hpp +++ b/src/PatchagePort.hpp @@ -61,7 +61,7 @@ public: Gtk::Menu* menu = Gtk::manage(new Gtk::Menu()); menu->items().push_back( Gtk::Menu_Helpers::MenuElem( - "Disconnect All", sigc::mem_fun(this, &Port::disconnect_all))); + "Disconnect All", sigc::mem_fun(this, &Port::disconnect))); menu->popup(ev->button, ev->time); return true; -- cgit v1.2.1