From f7368e7850307de97b024238a4f520afe1150c8b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 26 Jul 2007 09:32:49 +0000 Subject: Add const find interface to Raul::Table, fix bugs. Use Raul::Table on Ingen client side instead of std::map for objects, plugins. Work on renaming (still broken). git-svn-id: http://svn.drobilla.net/lad/ingen@634 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/gui/PatchPortModule.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/libs/gui/PatchPortModule.cpp') diff --git a/src/libs/gui/PatchPortModule.cpp b/src/libs/gui/PatchPortModule.cpp index 1d566741..bf63e9b6 100644 --- a/src/libs/gui/PatchPortModule.cpp +++ b/src/libs/gui/PatchPortModule.cpp @@ -26,6 +26,7 @@ #include "GladeFactory.hpp" #include "RenameWindow.hpp" #include "PatchWindow.hpp" +#include "WindowFactory.hpp" namespace Ingen { namespace GUI { @@ -71,6 +72,10 @@ PatchPortModule::create(boost::shared_ptr canvas, SharedPtr_patch_port = boost::shared_ptr(new Port(ret, port, true, true)); + ret->_patch_port->menu().items().push_back(Gtk::Menu_Helpers::MenuElem("Rename...", + sigc::bind( + sigc::mem_fun(App::instance().window_factory(), &WindowFactory::present_rename), + port))); ret->add_port(ret->_patch_port); for (MetadataMap::const_iterator m = port->metadata().begin(); m != port->metadata().end(); ++m) -- cgit v1.2.1