diff options
author | David Robillard <d@drobilla.net> | 2011-12-04 23:33:40 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-12-04 23:33:40 +0000 |
commit | 997b406e7d71e335c62e7e1f5f0f87303b121b17 (patch) | |
tree | d2b46978965c5887e23c43f6def62afebc743049 | |
parent | a9bea6c1d981d6bc53817fce6db4c9bc0f1e1e62 (diff) | |
download | patchage-997b406e7d71e335c62e7e1f5f0f87303b121b17.tar.gz patchage-997b406e7d71e335c62e7e1f5f0f87303b121b17.tar.bz2 patchage-997b406e7d71e335c62e7e1f5f0f87303b121b17.zip |
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
-rw-r--r-- | src/PatchageModule.cpp | 8 | ||||
-rw-r--r-- | 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; |