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/Port.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/libs/gui/Port.cpp') diff --git a/src/libs/gui/Port.cpp b/src/libs/gui/Port.cpp index 4b824f15..cd13d89d 100644 --- a/src/libs/gui/Port.cpp +++ b/src/libs/gui/Port.cpp @@ -47,6 +47,8 @@ Port::Port(boost::shared_ptr module, SharedPtr pm if (destroyable) _menu.items().push_back(Gtk::Menu_Helpers::MenuElem("Destroy", sigc::mem_fun(this, &Port::on_menu_destroy))); + + _port_model->renamed_sig.connect(sigc::mem_fun(this, &Port::renamed)); } @@ -57,5 +59,12 @@ Port::on_menu_destroy() } +void +Port::renamed() +{ + set_name(_port_model->path().name()); +} + + } // namespace GUI } // namespace Ingen -- cgit v1.2.1