diff options
author | David Robillard <d@drobilla.net> | 2007-10-04 01:28:27 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-10-04 01:28:27 +0000 |
commit | 2f991988c6b3d91652461fe70447e343fb3aa916 (patch) | |
tree | e4cd972696c68e6a4758f6df74401b9147c53e41 /src/libs/gui/Port.cpp | |
parent | 93197523aaf7b35350a2a26430be7301ad0502b8 (diff) | |
download | ingen-2f991988c6b3d91652461fe70447e343fb3aa916.tar.gz ingen-2f991988c6b3d91652461fe70447e343fb3aa916.tar.bz2 ingen-2f991988c6b3d91652461fe70447e343fb3aa916.zip |
Fixed port menu (load fancy dynamic menu from Glade).
Renaming of JACK ports.
git-svn-id: http://svn.drobilla.net/lad/ingen@820 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/gui/Port.cpp')
-rw-r--r-- | src/libs/gui/Port.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libs/gui/Port.cpp b/src/libs/gui/Port.cpp index 228e4598..ccd9652c 100644 --- a/src/libs/gui/Port.cpp +++ b/src/libs/gui/Port.cpp @@ -18,6 +18,7 @@ #include <cassert> #include <iostream> #include "interface/EngineInterface.hpp" +#include "flowcanvas/Module.hpp" #include "client/PatchModel.hpp" #include "client/PortModel.hpp" #include "client/ControlModel.hpp" @@ -44,6 +45,9 @@ Port::Port(boost::shared_ptr<FlowCanvas::Module> module, SharedPtr<PortModel> pm { assert(module); assert(_port_model); + + delete _menu; + _menu = NULL; _port_model->signal_renamed.connect(sigc::mem_fun(this, &Port::renamed)); @@ -83,6 +87,7 @@ void Port::renamed() { set_name(_port_model->path().name()); + module().lock()->resize(); } |